ProcessInstance is in the Catalog inside Fuego.Lib.
// "args" is an associative string array (Any[String]) argsIn as Any[String] // this assumes that the Begin activity has two argument variables // named "nameArg" and "amountArg" and you're setting them // to the variables "name" and "amount" respectively argsIn["someArgVarName"] = "Hello" argsIn["someBpmObject"] = myBpmObject // logic here to determine the name of the process to create an instance in idOfProcess as String idOfProcess = <hard coded string that has the id (not the name of the process to instantiate> ProcessInstance.create(processId : "/" + idOfProcess, arguments : argsIn, argumentsSetName : "BeginIn")
Here is the correct syntax:
. . . // this will *NOT* work argsIn[someArgVarName] = "Hello" argsIn[someBpmObject] = myBpmObject . . .
In this example, the process has two argument variables. It does not matter if the incoming argument variables are primitive type arguments (e.g. String, Integer, Decimal...) or BPM Objects, it is always done the same way. In this example, there is a String incoming argument called "someArgVarName" and a BPM Object incoming argument called "someBpmObject".
. . . // this *WILL* work argsIn["someArgVarName"] = "Hello" argsIn["someBpmObject"] = myBpmObject . . .