Sequence Flow
Bases: Task
An API from Sequence Flow from BPMN. This classes holds SequenceFlowElement
as elements.
Attributes:
Name | Type | Description |
---|---|---|
root |
_Element
|
root of BPMN loaded as XML. |
Source code in bpmn_parser/_sequence_flow.py
Bases: BPMNElement
Parse an Sequence Flow from BPMN.
Attributes:
Name | Type | Description |
---|---|---|
source_ref |
str
|
source reference from this element in BPMN. |
target_ref |
str
|
target reference from this element in BPMN. |
condition_expression |
Union[ConditionExpressionElement, None]
|
a condition expression implemented in this element in BPMN. |
Source code in bpmn_parser/_sequence_flow.py
List
List all intermedicate catch events elements founded in .bpmn
file.
Output
[
SequenceFlowElement(
id='Flow_12kpqpg',
name=None,
source_ref='Activity_ManuallyScreening',
target_ref='Gateway_0v0migw',
condition_expression=None),
SequenceFlowElement(
id='Flow_0kt31nl',
name='Not',
source_ref='Gateway_13p78ag',
target_ref='Gateway_0v0migw',
condition_expression=None),
SequenceFlowElement(
id='Flow_1ab06b8',
name='Yes',
source_ref='Gateway_0djd7kh',
target_ref='Gateway_13p78ag',
condition_expression=ConditionExpressionElement(
type='bpmn:tFormalExpression',
condition='${pre_triagem__is_processo_atualizado == true || pre_triagem__tentativas_atualizacao >= 10}')
),
SequenceFlowElement(
id='Flow_07n3h98',
name='Yes',
source_ref='Gateway_13p78ag',
target_ref='Activity_ManuallyScreening',
condition_expression=ConditionExpressionElement(
type='bpmn:tFormalExpression',
condition='${pre_screening_success == false}')
),
]
Get
Get a specific exclusive gateway by your ID.
Output
SequenceFlowElement(
id='Flow_1ab06b8',
name='Yes',
source_ref='Gateway_0djd7kh',
target_ref='Gateway_13p78ag',
condition_expression=ConditionExpressionElement(
type='bpmn:tFormalExpression',
condition='${pre_triagem__is_processo_atualizado == true || pre_triagem__tentativas_atualizacao >= 10}'
)
)