|Activity instance not created when starting process instance programmatically [message #1701602]
||Tue, 14 July 2015 11:30
| Tam Gom
Registered: July 2011
I have created a very simple workflow process, you can see the diagram for it in the image below:
I deployed the model, then started a process instance with the following snippet:
Map<String, String> initData = new HashMap<String, String>();
ProcessInstance process = workflowService.startProcess(processId, initData, false);
The process gets started and a new record is created for it in the PROCESS_INSTANCE table in the database.
According to my understanding when the process is started the workflow execution should step from the start event to the manual task, however, there's no record for the activity instance in the ACTIVITY_INSTANCE table and understandably no ActivityInstance is returned when I do a query for it with the Java API. (A record for the activity in the ACTIVITY table is created upon deployment.)
What do I do wrong? Do I need to somehow make steps manually in the process instance or is there an option I have to switch on to get automated steps?
Powered by FUDForum
. Page generated in 0.01636 seconds