paed01/bpmn-engine

userTask or any Task context

Closed this issue · 1 comments

n0byk commented

Hi! can i add some context to userTask like this

<bpmn:userTask id="task_clean" name="Clean" task_title="12312312312312312" task_priority="Clean" task_descriptiion="2222222222" task_assignAt="2" task_observer="3" task_responsible="4">
bpmn:task_titleflow_gw1_clean</bpmn:task_title>
bpmn:incomingflow_gw1_clean</bpmn:incoming>
bpmn:outgoingflow_clean_gw2</bpmn:outgoing>
</bpmn:userTask>

or like this

<bpmn:userTask id="task_clean" name="Clean" >
bpmn:task_title12312312312312312</bpmn:task_title>
bpmn:incomingflow_gw1_clean</bpmn:incoming>
bpmn:outgoingflow_clean_gw2</bpmn:outgoing>
</bpmn:userTask>

is that right way to use context?

BPMN 2.0 has a defined schema that will not recognise your elements. So I guess you should try to extend it in your own xml-namespace as camunda does. Or, you can have a look at a simplified version here in my mock extension.

Otherwise, https://bpmn.io is a good starting point when you try to extend bpmn.