cancel
Showing results for 
Search instead for 
Did you mean: 

No entries found in ACT_RU_EXECUTION and ACT_RU_TASK table even though Process Instance ID is generated

chandanmb1
Champ on-the-rise
Champ on-the-rise
Hello team,

I am deploying the attached sample process in activiti. It is deploying and after starting of process it is generating  process instance id as well. But there is no entry in EXECUTION and TASK table. I am using User Task in all the activities.
1 ACCEPTED ANSWER

gdharley
Elite Collaborator
Elite Collaborator

What BPMN Modeler are you using to create this process definition?

It is certainly BPMN 2.0 compatible and produces valid BPMN, but the task "type" definition is not defined and as such is not  an "executable" process.

Take the first task:

<bpmn:task id="Task_1jcrv8e" name="JIRA">
<bpmn:incoming>SequenceFlow_1fbnbrj</bpmn:incoming>
<bpmnSmiley Surprisedutgoing>SequenceFlow_1go50qm</bpmnSmiley Surprisedutgoing>
</bpmn:task>

While this is certainly valid, it lacks certain details required to actually create a "task" within the process engine.
See below a typical user task:

<userTask id="sid-C62D0DEB-58C9-438D-9E8F-446ADBA42E2B" name="Evaluate Other Options" activiti:assignee="$INITIATOR" activiti:formKey="8014">
<extensionElements>
<activiti:taskListener event="complete" expression="${execution.setVariable(&quot;taskAssignee&quot;, task.assignee)}"/>
</extensionElements>
</userTask>

Key missing elements are the "type" subclass (in the above example this is userTask). Also, a task must have an assignee as highlighted above.

I suggest you import your model into the Activiti editor/modeler and add the necessary attributes and then redeploy.

Hope this helps,

Greg

View answer in original post

1 REPLY 1

gdharley
Elite Collaborator
Elite Collaborator

What BPMN Modeler are you using to create this process definition?

It is certainly BPMN 2.0 compatible and produces valid BPMN, but the task "type" definition is not defined and as such is not  an "executable" process.

Take the first task:

<bpmn:task id="Task_1jcrv8e" name="JIRA">
<bpmn:incoming>SequenceFlow_1fbnbrj</bpmn:incoming>
<bpmnSmiley Surprisedutgoing>SequenceFlow_1go50qm</bpmnSmiley Surprisedutgoing>
</bpmn:task>

While this is certainly valid, it lacks certain details required to actually create a "task" within the process engine.
See below a typical user task:

<userTask id="sid-C62D0DEB-58C9-438D-9E8F-446ADBA42E2B" name="Evaluate Other Options" activiti:assignee="$INITIATOR" activiti:formKey="8014">
<extensionElements>
<activiti:taskListener event="complete" expression="${execution.setVariable(&quot;taskAssignee&quot;, task.assignee)}"/>
</extensionElements>
</userTask>

Key missing elements are the "type" subclass (in the above example this is userTask). Also, a task must have an assignee as highlighted above.

I suggest you import your model into the Activiti editor/modeler and add the necessary attributes and then redeploy.

Hope this helps,

Greg