User Task
Bases: Task
An API from Service Task from BPMN. This classes holds UserTaskElement
as elements.
Attributes:
Name | Type | Description |
---|---|---|
root |
_Element
|
root of BPMN loaded as XML. |
Source code in bpmn_parser/_user_task.py
Bases: TaskElement
Parse an Service Task from BPMN.
Attributes:
Name | Type | Description |
---|---|---|
form_key |
str
|
form key of element in BPMN. |
candidate_groups |
str
|
candidate groups of element in BPMN. |
due_date |
str
|
due date of element in BPMN. |
priority |
str
|
priority of element in BPMN. |
Source code in bpmn_parser/_user_task.py
List
List all intermedicate catch events elements founded in .bpmn
file.
Output
[
UserTaskElement(
id='Activity_HandleDataManually',
name='Handle Data Manually',
execution_listeners=[
ExecutionListener(
expression="${execution.setVariable('task_created_at', dateTime().plusHours(3).toDate())}",
event='start'
)
],
form_key='embedded:deployment:HandleDataManually.json',
candidate_groups='some-group',
due_date='${dateTime().plusDays(2).toDate()}',
priority="${execution.getVariable('is_priority') == true ? 75 : 50}"
),
UserTaskElement(
id='Activity_ManuallyScreening',
name='Manually Screening',
execution_listeners=[
ExecutionListener(
expression="${execution.setVariable('task_created_at', dateTime().plusHours(3).toDate())}",
event='start'
)
],
form_key='embedded:deployment:ManuallyScreening.json',
candidate_groups='some-group',
due_date='${dateTime().plusDays(2).toDate()}',
priority="${execution.getVariable('is_priority') == true ? 75 : 50}")
]
Get
Get a specific exclusive gateway by your ID.
Output
UserTaskElement(
id='Activity_HandleDataManually',
name='Handle Data Manually',
execution_listeners=[
ExecutionListener(
expression="${execution.setVariable('task_created_at', dateTime().plusHours(3).toDate())}",
event='start'
)
],
form_key='embedded:deployment:HandleDataManually.json',
candidate_groups='some-group',
due_date='${dateTime().plusDays(2).toDate()}',
priority="${execution.getVariable('is_priority') == true ? 75 : 50}"
)