How do I create a new case in actions in Petriflow language? I have tried createCase().

How do I create a new case in actions in Petriflow language? I have tried createCase().

In Petriflow in Action API function createCase has several signatures,
but you always must at least provide Net/Process from which you want to create a case.
One usage is provide process identifier as a string and the another is provide a PetriNet object.
You can read more in official documentation https://petriflow.com/#/actions?id=createcase.