Interface IBpmnElementStore
-
public interface IBpmnElementStoreProvides access to all BPMN elements when creating a BPMN diagram.- Since:
- 8.4.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description de.xima.bpmn_model.api.element.bpmn.service.Interface_interface(Object id)Gets a globalInterfacewith the given ID.de.xima.bpmn_model.api.element.bpmn.service.Interface_interface(Object... id)Gets a globalInterfacewith the given ID.de.xima.bpmn_model.api.element.bpmn.common.ErrorallError()A BPMNErrorthat references all types of errors.StringallErrorCode()The error code of the BPMNErrorthat references all types of errors.de.xima.bpmn_model.api.element.bpmn.events.ErrorEventDefinitionallErrorEventDefinition()The globalEventDefinitioncorresponding to theallError().de.xima.bpmn_model.api.element.bpmn.common.EscalationbreakEscalation(WorkflowNode target)A BPMNEscalationthat can be thrown by BPMN parts corresponding to aWorkflowNodewhose execution can end abruptly with aNodeTransferredControlExceptionthat have atargetand where thecontrol transfer typeisBREAK.StringbreakEscalationCode(WorkflowNode target)The code of a BPMNEscalationthat can be thrown by BPMN parts corresponding to aWorkflowNodewhose execution can end abruptly with aNodeTransferredControlExceptionthat have atargetand where thecontrol transfer typeisBREAK.de.xima.bpmn_model.api.element.bpmn.events.EscalationEventDefinitionbreakEscalationEventDefinition(WorkflowNode target)The globalEventDefinitioncorresponding to thebreakEscalation(WorkflowNode).BpmnRaisableEscalationbreakEscalationRaisable(WorkflowNode target)ABpmnRaisableEscalationthat can be thrown by BPMN parts corresponding to aWorkflowNodewhose execution can end abruptly with aNodeTransferredControlExceptionthat have atargetand where thecontrol transfer typeisBREAK.de.xima.bpmn_model.api.element.bpmn.artifacts.Categorycategory(Object id)Gets a globalCategorywith the given ID.de.xima.bpmn_model.api.element.bpmn.artifacts.Categorycategory(Object... id)Gets a globalCategorywith the given ID.de.xima.bpmn_model.api.element.bpmn.artifacts.CategoryValuecategoryValue(de.xima.bpmn_model.api.element.bpmn.artifacts.Category category, Object id)de.xima.bpmn_model.api.element.bpmn.artifacts.CategoryValuecategoryValue(de.xima.bpmn_model.api.element.bpmn.artifacts.Category category, Object... id)de.xima.bpmn_model.api.element.bpmn.common.EscalationcontinueEscalation(WorkflowNode target)A BPMNEscalationthat can be thrown by BPMN parts corresponding to aWorkflowNodewhose execution can end abruptly with aNodeTransferredControlExceptionthat have atargetand where thecontrol transfer typeisCONTINUE.StringcontinueEscalationCode(WorkflowNode target)The code of a BPMNEscalationthat can be thrown by BPMN parts corresponding to aWorkflowNodewhose execution can end abruptly with aNodeTransferredControlExceptionthat have atargetand where thecontrol transfer typeisCONTINUE.de.xima.bpmn_model.api.element.bpmn.events.EscalationEventDefinitioncontinueEscalationEventDefinition(WorkflowNode target)The globalEventDefinitioncorresponding to thecontinueEscalation(WorkflowNode).BpmnRaisableEscalationcontinueEscalationRaisable(WorkflowNode target)ABpmnRaisableEscalationthat can be thrown by BPMN parts corresponding to aWorkflowNodewhose execution can end abruptly with aNodeTransferredControlExceptionthat have atargetand where thecontrol transfer typeisCONTINUE.de.xima.bpmn_model.api.element.bpmn.data.DataStoredatabaseConnectionDataStore(DatenbankZugriff dbConnection)Gets the globalDataStorefor the givendatabase connection.de.xima.bpmn_model.api.element.bpmn.data.DataStoredatabaseConnectionDataStore(UuidEntityRef dbConnection)Gets the globalDataStorefor the givendatabase connection.de.xima.bpmn_model.api.element.bpmn.data.DataStoredatabaseConnectionDataStore(UUID dbConnectionUuid)Gets the globalDataStorefor the givendatabase connectionUUID.de.xima.bpmn_model.api.element.bpmn.data.DataStoredataStore(Object id)Gets a globalDataStorewith the given ID.de.xima.bpmn_model.api.element.bpmn.data.DataStoredataStore(Object... id)Gets a globalDataStorewith the given ID.de.xima.bpmn_model.api.element.bpmn.common.Errorerror(String code, OnRaisableMissing onMissing)Gets the global BPMNErrorwith the given error code.de.xima.bpmn_model.api.element.bpmn.events.ErrorEventDefinitionerrorEventDefinition(String code, OnRaisableMissing onMissing)The globalEventDefinitioncorresponding to theerror(String, OnRaisableMissing).BpmnRaisableErrorerrorRaisable(String code, OnRaisableMissing onMissing)Gets the globalBpmnRaisableSignalwith the given error code.de.xima.bpmn_model.api.element.bpmn.common.Escalationescalation(String code, OnRaisableMissing onMissing)Gets the global BPMNEscalationwith the given escalation code.de.xima.bpmn_model.api.element.bpmn.events.EscalationEventDefinitionescalationEventDefinition(String code, OnRaisableMissing onMissing)The globalEventDefinitioncorresponding to theescalation(String, OnRaisableMissing).BpmnRaisableEscalationescalationRaisable(String code, OnRaisableMissing onMissing)Gets the globalBpmnRaisableEscalationwith the given escalation code.de.xima.bpmn_model.api.element.bpmn.common.ErrorgeneralError()A BPMNErrorthat can be thrown by BPMN parts corresponding to aWorkflowNodewhose execution can end abruptly with anNodeThrewException.StringgeneralErrorCode()The code of a BPMNErrorthat can be thrown by BPMN parts corresponding to aWorkflowNodewhose execution can end abruptly with anNodeThrewException.de.xima.bpmn_model.api.element.bpmn.events.ErrorEventDefinitiongeneralErrorEventDefinition()The globalEventDefinitioncorresponding to thegeneralError().BpmnRaisableErrorgeneralErrorRaisable()ABpmnRaisableEscalationthat can be thrown by BPMN parts corresponding to aWorkflowNodewhose execution can end abruptly with anNodeThrewException.de.xima.bpmn_model.api.element.bpmn.common.ItemDefinitionitem(de.xima.bpmn_model.api.element.bpmn.common.ItemKind itemKind, QName structure, boolean collection)Gets a globalItemDefinitionfor the given item kind, qualified name and collection flag.de.xima.bpmn_model.api.element.bpmn.common.ItemDefinitionitem(Object id)Gets a globalItemDefinitionwith the given ID.de.xima.bpmn_model.api.element.bpmn.common.ItemDefinitionitem(Object... id)Gets a globalItemDefinitionwith the given ID.de.xima.bpmn_model.api.element.bpmndi.BpmnLabelStylelabelStyle(WorkflowBpmnLabelStyleDefinition style)Gets the globalBpmnLabelStylefor the given style definition.de.xima.bpmn_model.api.element.bpmn.data.DataStoreldapConnectionDataStore(LDAPZugriff ldapConnection)Gets the globalDataStorefor the givenLDAP connection.de.xima.bpmn_model.api.element.bpmn.data.DataStoreldapConnectionDataStore(UuidEntityRef ldapConnection)Gets the globalDataStorefor the givenLDAP connection.de.xima.bpmn_model.api.element.bpmn.data.DataStoreldapConnectionDataStore(UUID ldapConnectionUuid)Gets the globalDataStorefor the givenLDAP connectionUUID.de.xima.bpmn_model.api.element.bpmn.collaboration.Collaboration<?>mainCollaboration()The mainCollaborationcontaining theParticipantrepresenting the formcycle workflow engine.de.xima.bpmn_model.api.element.bpmndi.BpmnDiagrammainDiagram()The mainBpmnDiagramwhich contains all diagram elements.de.xima.bpmn_model.api.element.bpmndi.BpmnPlanemainPlane()The mainBpmnPlaneof themainDiagram()that contains all diagram elements.de.xima.bpmn_model.api.element.bpmn.common.Messagemessage(Object id)Gets a globalMessagewith the given ID.de.xima.bpmn_model.api.element.bpmn.common.Messagemessage(Object... id)Gets a globalMessagewith the given ID.de.xima.bpmn_model.api.element.bpmn.events.MessageEventDefinitionmessageDefinition(Object id)Gets a globalMessageEventDefinitionwith the given ID.de.xima.bpmn_model.api.element.bpmn.events.MessageEventDefinitionmessageDefinition(Object... id)Gets a globalMessageEventDefinitionwith the given ID.de.xima.bpmn_model.api.element.bpmn.service.Operationoperation(de.xima.bpmn_model.api.element.bpmn.service.Interface _interface, Object id)Gets the operation with the given ID from the givenInterface.de.xima.bpmn_model.api.element.bpmn.service.Operationoperation(de.xima.bpmn_model.api.element.bpmn.service.Interface _interface, Object... id)Gets the operation with the given ID from the givenInterface.de.xima.bpmn_model.api.element.bpmn.events.Signalsignal(String signalName, OnRaisableMissing onMissing)Gets the global BPMNSignalwith the given ID.de.xima.bpmn_model.api.element.bpmn.events.SignalEventDefinitionsignalEventDefinition(String signalName, OnRaisableMissing onMissing)The globalEventDefinitioncorresponding to thesignal(String, OnRaisableMissing).BpmnRaisableSignalsignalRaisable(String signalName, OnRaisableMissing onMissing)Gets the globalBpmnRaisableSignalwith the given ID.de.xima.bpmn_model.api.element.bpmn.events.TerminateEventDefinitionterminateEventDefinition()The globalEventDefinitionfor terminating aProcessorSubProcess.de.xima.bpmn_model.api.element.bpmn.common.EscalationterminationEscalation()A BPMNEscalationthat can be thrown by BPMN parts corresponding to aWorkflowNodewhose execution can end abruptly with aNodeReturnedException.StringterminationEscalationCode()A BPMNEscalationthat can be thrown by BPMN parts corresponding to aWorkflowNodewhose execution can end abruptly with aNodeReturnedException.de.xima.bpmn_model.api.element.bpmn.events.EscalationEventDefinitionterminationEscalationEventDefinition()The globalEventDefinitioncorresponding to theterminationEscalation().BpmnRaisableEscalationterminationEscalationRaisable()ABpmnRaisableEscalationthat can be thrown by BPMN parts corresponding to aWorkflowNodewhose execution can end abruptly with aNodeReturnedException.de.xima.bpmn_model.api.element.bpmn.data.DataStorewebDavConnectionDataStore(WebDavAccess webDavConnection)Gets the globalDataStorefor the givenWebDAV.de.xima.bpmn_model.api.element.bpmn.data.DataStorewebDavConnectionDataStore(UuidEntityRef webDavConnection)Gets the globalDataStorefor the givenWebDAV.de.xima.bpmn_model.api.element.bpmn.data.DataStorewebDavConnectionDataStore(UUID webDavConnectionUuid)Gets the globalDataStorefor the givenLDAP connectionUUID.
-
-
-
Method Detail
-
_interface
de.xima.bpmn_model.api.element.bpmn.service.Interface _interface(Object id)
Gets a globalInterfacewith the given ID. If no interface with the given ID exists, creates a new interface. If an interface with the given ID already exists, returns that interface.- Parameters:
id- The ID of the interface. This is NOT theIDof the BPMN element.- Returns:
- The global interface with the given ID, never null.
-
_interface
de.xima.bpmn_model.api.element.bpmn.service.Interface _interface(Object... id)
Gets a globalInterfacewith the given ID. If no interface with the given ID exists, creates a new interface. If an interface with the given ID already exists, returns that interface.- Parameters:
id- The ID of the interface. When multiple values are given, this is considered a compound ID, and the order is important. This is NOT theIDof the BPMN element.- Returns:
- The global interface with the given ID, never null.
-
allError
de.xima.bpmn_model.api.element.bpmn.common.Error allError()
A BPMNErrorthat references all types of errors.Can be caught by BPMN parts corresponding to a
WorkflowNodewhose execution catches all types ofNodeThrewException. Other errors instances can be used, but implementations are strongly recommended to use this generic all error.Only the
error codematters. You can either use a reference to this global error (e.g. viaEventDefinitionContaining.eventDefinitionReferences()), or create a newErrorwith the same error code. But prefer using a reference to keep the model small and clean.- Returns:
- The global all error instance, never null.
-
allErrorCode
String allErrorCode()
The error code of the BPMNErrorthat references all types of errors.Can be caught by BPMN parts corresponding to a
WorkflowNodewhose execution catches all types ofNodeThrewException. Other errors instances can be used, but implementations are strongly recommended to use this generic all error.Only the
error codematters. You can either use a reference to this global error (e.g. viaEventDefinitionContaining.eventDefinitionReferences()), or create a newErrorwith the same error code. But prefer using a reference to keep the model small and clean.- Returns:
- The global all error code, never null.
-
allErrorEventDefinition
de.xima.bpmn_model.api.element.bpmn.events.ErrorEventDefinition allErrorEventDefinition()
The globalEventDefinitioncorresponding to theallError(). Can be used when creating new events, viaEventDefinitionContaining.eventDefinitionReferences().- Returns:
- The global all error event definition, never null.
-
breakEscalation
de.xima.bpmn_model.api.element.bpmn.common.Escalation breakEscalation(WorkflowNode target)
A BPMNEscalationthat can be thrown by BPMN parts corresponding to aWorkflowNodewhose execution can end abruptly with aNodeTransferredControlExceptionthat have atargetand where thecontrol transfer typeisBREAK.In other words, this is used for break statements inside a loop that targets the configured loop.
Only the
escalation codematters. You can either use a reference to this global escalation (e.g. viaEventDefinitionContaining.eventDefinitionReferences()), or create a newEscalationwith the same escalation code. But prefer using a reference to keep the model small and clean.If the given target is null, this method returns null.
- Parameters:
target- The target node of the break statement.- Returns:
- The global break escalation instance for the given target, never null.
-
breakEscalationCode
String breakEscalationCode(WorkflowNode target)
The code of a BPMNEscalationthat can be thrown by BPMN parts corresponding to aWorkflowNodewhose execution can end abruptly with aNodeTransferredControlExceptionthat have atargetand where thecontrol transfer typeisBREAK.In other words, this is used for break statements inside a loop that targets the configured loop.
If the given target is null, this method returns null.
- Parameters:
target- The target node of the break statement.- Returns:
- The code of a global break escalation instance for the given target, never null.
-
breakEscalationEventDefinition
de.xima.bpmn_model.api.element.bpmn.events.EscalationEventDefinition breakEscalationEventDefinition(WorkflowNode target)
The globalEventDefinitioncorresponding to thebreakEscalation(WorkflowNode). Can be used when creating new events, viaEventDefinitionContaining.eventDefinitionReferences().If the given target is null, this method returns null.
- Parameters:
target- The target node of the break statement.- Returns:
- The global break escalation event definition for the given target, never null.
-
breakEscalationRaisable
BpmnRaisableEscalation breakEscalationRaisable(WorkflowNode target)
ABpmnRaisableEscalationthat can be thrown by BPMN parts corresponding to aWorkflowNodewhose execution can end abruptly with aNodeTransferredControlExceptionthat have atargetand where thecontrol transfer typeisBREAK.In other words, this is used for break statements inside a loop that targets the configured loop.
Only the
escalation codematters. You can either use a reference to this global escalation (e.g. viaEventDefinitionContaining.eventDefinitionReferences()), or create a newEscalationwith the same escalation code. But prefer using a reference to keep the model small and clean.If the given target is null, this method returns null.
- Parameters:
target- The target node of the break statement.- Returns:
- The global break escalation instance for the given target, never null.
-
category
de.xima.bpmn_model.api.element.bpmn.artifacts.Category category(Object id)
Gets a globalCategorywith the given ID. If no category with the given ID exists, creates a new category. If a category with the given ID already exists, returns that category.- Parameters:
id- The ID of the category. This is NOT theIDof the BPMN element.- Returns:
- The global category with the given ID, never null.
-
category
de.xima.bpmn_model.api.element.bpmn.artifacts.Category category(Object... id)
Gets a globalCategorywith the given ID. If no category with the given ID exists, creates a new category. If a category with the given ID already exists, returns that category.- Parameters:
id- The ID of the category. When multiple values are given, this is considered a compound ID, and the order is important. This is NOT theIDof the BPMN element.- Returns:
- The global category with the given ID, never null.
-
categoryValue
de.xima.bpmn_model.api.element.bpmn.artifacts.CategoryValue categoryValue(de.xima.bpmn_model.api.element.bpmn.artifacts.Category category, Object id)
-
categoryValue
de.xima.bpmn_model.api.element.bpmn.artifacts.CategoryValue categoryValue(de.xima.bpmn_model.api.element.bpmn.artifacts.Category category, Object... id)
-
continueEscalation
de.xima.bpmn_model.api.element.bpmn.common.Escalation continueEscalation(WorkflowNode target)
A BPMNEscalationthat can be thrown by BPMN parts corresponding to aWorkflowNodewhose execution can end abruptly with aNodeTransferredControlExceptionthat have atargetand where thecontrol transfer typeisCONTINUE.In other words, this is used for continue statements that target the configured loop.
Only the
escalation codematters. You can either use a reference to this global escalation (e.g. viaEventDefinitionContaining.eventDefinitionReferences()), or create a newEscalationwith the same escalation code. But prefer using a reference to keep the model small and clean.If the given target is null, this method returns null.
- Parameters:
target- The target node of the continue statement.- Returns:
- The global continue escalation instance for the given target, never null.
-
continueEscalationCode
String continueEscalationCode(WorkflowNode target)
The code of a BPMNEscalationthat can be thrown by BPMN parts corresponding to aWorkflowNodewhose execution can end abruptly with aNodeTransferredControlExceptionthat have atargetand where thecontrol transfer typeisCONTINUE.In other words, this is used for continue statements that target the configured loop.
If the given target is null, this returns null.
- Parameters:
target- The target node of the continue statement.- Returns:
- The code of the global continue escalation instance for the given target, never null.
-
continueEscalationEventDefinition
de.xima.bpmn_model.api.element.bpmn.events.EscalationEventDefinition continueEscalationEventDefinition(WorkflowNode target)
The globalEventDefinitioncorresponding to thecontinueEscalation(WorkflowNode). Can be used when creating new events, viaEventDefinitionContaining.eventDefinitionReferences().- Parameters:
target- The target node of the continue statement.- Returns:
- The global continue escalation event definition for the given target, never null.
-
continueEscalationRaisable
BpmnRaisableEscalation continueEscalationRaisable(WorkflowNode target)
ABpmnRaisableEscalationthat can be thrown by BPMN parts corresponding to aWorkflowNodewhose execution can end abruptly with aNodeTransferredControlExceptionthat have atargetand where thecontrol transfer typeisCONTINUE.In other words, this is used for continue statements that target the configured loop.
Only the
escalation codematters. You can either use a reference to this global escalation (e.g. viaEventDefinitionContaining.eventDefinitionReferences()), or create a newEscalationwith the same escalation code. But prefer using a reference to keep the model small and clean.If the given target is null, this method returns null.
- Parameters:
target- The target node of the continue statement.- Returns:
- The global continue escalation instance for the given target, never null.
-
dataStore
de.xima.bpmn_model.api.element.bpmn.data.DataStore dataStore(Object id)
Gets a globalDataStorewith the given ID. If no data store with the given ID exists, creates a new data store. If a data store with the given ID already exists, returns that data store.- Parameters:
id- The ID of the data store. This is NOT theIDof the BPMN element.- Returns:
- The global data store with the given ID, never null.
-
dataStore
de.xima.bpmn_model.api.element.bpmn.data.DataStore dataStore(Object... id)
Gets a globalDataStorewith the given ID. If no data store with the given ID exists, creates a new data store. If a data store with the given ID already exists, returns that data store.- Parameters:
id- The ID of the data store. When multiple values are given, this is considered a compound ID, and the order is important. This is NOT theIDof the BPMN element.- Returns:
- The global data store with the given ID, never null.
-
databaseConnectionDataStore
de.xima.bpmn_model.api.element.bpmn.data.DataStore databaseConnectionDataStore(DatenbankZugriff dbConnection)
Gets the globalDataStorefor the givendatabase connection.- Parameters:
dbConnection- The database connection to get the data store for.- Returns:
- The global data store for the given database connection, never null.
-
databaseConnectionDataStore
de.xima.bpmn_model.api.element.bpmn.data.DataStore databaseConnectionDataStore(UuidEntityRef dbConnection)
Gets the globalDataStorefor the givendatabase connection.- Parameters:
dbConnection- The database connection to get the data store for.- Returns:
- The global data store for the given database connection, never null.
-
databaseConnectionDataStore
de.xima.bpmn_model.api.element.bpmn.data.DataStore databaseConnectionDataStore(UUID dbConnectionUuid)
Gets the globalDataStorefor the givendatabase connectionUUID.- Parameters:
dbConnectionUuid- The UUID of the database connection to get the data store for.- Returns:
- The global data store for the given database connection, never null.
-
error
de.xima.bpmn_model.api.element.bpmn.common.Error error(String code, OnRaisableMissing onMissing)
Gets the global BPMNErrorwith the given error code.Only the
error codematters. You can either use a reference to this global error (e.g. viaEventDefinitionContaining.eventDefinitionReferences()), or create a newErrorwith the same error code. But prefer using a reference to keep the model small and clean.- Parameters:
code- The code of the error to get. This is NOT theIDof the BPMN element.onMissing- How to proceed when no error with the given code exists yet.- Returns:
- The error instance for the given code, never null.
-
errorEventDefinition
de.xima.bpmn_model.api.element.bpmn.events.ErrorEventDefinition errorEventDefinition(String code, OnRaisableMissing onMissing)
The globalEventDefinitioncorresponding to theerror(String, OnRaisableMissing). Can be used when creating new events, viaEventDefinitionContaining.eventDefinitionReferences().- Parameters:
code- The code of the error event definition to get. This is NOT theIDof the BPMN element.onMissing- How to proceed when no error with the given code exists yet.- Returns:
- The global error event definition with the given code, never null.
-
errorRaisable
BpmnRaisableError errorRaisable(String code, OnRaisableMissing onMissing)
Gets the globalBpmnRaisableSignalwith the given error code.Only the
error codematters. You can either use a reference to this global error (e.g. viaEventDefinitionContaining.eventDefinitionReferences()), or create a newErrorwith the same error code. But prefer using a reference to keep the model small and clean.- Parameters:
code- The code of the error to get. This is NOT theIDof the BPMN element.onMissing- How to proceed when no error with the given code exists yet.- Returns:
- The error instance for the given code, never null.
-
escalation
de.xima.bpmn_model.api.element.bpmn.common.Escalation escalation(String code, OnRaisableMissing onMissing)
Gets the global BPMNEscalationwith the given escalation code.Only the
escalation codematters. You can either use a reference to this global escalation (e.g. viaEventDefinitionContaining.eventDefinitionReferences()), or create a newEscalationwith the same escalation code. But prefer using a reference to keep the model small and clean.- Parameters:
code- The escalation code of the escalation to get. This is NOT theIDof the BPMN element.onMissing- How to proceed when no signal with the given name exists yet.- Returns:
- The escalation instance for the given code, never null.
-
escalationEventDefinition
de.xima.bpmn_model.api.element.bpmn.events.EscalationEventDefinition escalationEventDefinition(String code, OnRaisableMissing onMissing)
The globalEventDefinitioncorresponding to theescalation(String, OnRaisableMissing). Can be used when creating new events, viaEventDefinitionContaining.eventDefinitionReferences().- Parameters:
code- The escalation code of the escalation event definition to get. This is NOT theIDof the BPMN element.onMissing- How to proceed when no signal with the given name exists yet.- Returns:
- The global escalation event definition with the given code, never null.
-
escalationRaisable
BpmnRaisableEscalation escalationRaisable(String code, OnRaisableMissing onMissing)
Gets the globalBpmnRaisableEscalationwith the given escalation code.Only the
escalation codematters. You can either use a reference to this global escalation (e.g. viaEventDefinitionContaining.eventDefinitionReferences()), or create a newEscalationwith the same escalation code. But prefer using a reference to keep the model small and clean.- Parameters:
code- The escalation code of the escalation to get. This is NOT theIDof the BPMN element.onMissing- How to proceed when no signal with the given name exists yet.- Returns:
- The escalation instance for the given code, never null.
-
generalError
de.xima.bpmn_model.api.element.bpmn.common.Error generalError()
A BPMNErrorthat can be thrown by BPMN parts corresponding to aWorkflowNodewhose execution can end abruptly with anNodeThrewException. Other errors can be used, but implementations are strongly recommended to use this generic general error.Only the
error codematters. You can either use a reference to this global error (e.g. viaEventDefinitionContaining.eventDefinitionReferences()), or create a newErrorwith the same error code. But prefer using a reference to keep the model small and clean.- Returns:
- The global general error instance, never null.
-
generalErrorCode
String generalErrorCode()
The code of a BPMNErrorthat can be thrown by BPMN parts corresponding to aWorkflowNodewhose execution can end abruptly with anNodeThrewException. Other errors can be used, but implementations are strongly recommended to use this generic general error.- Returns:
- The code of a global general error instance, never null.
-
generalErrorEventDefinition
de.xima.bpmn_model.api.element.bpmn.events.ErrorEventDefinition generalErrorEventDefinition()
The globalEventDefinitioncorresponding to thegeneralError(). Can be used when creating new events, viaEventDefinitionContaining.eventDefinitionReferences().- Returns:
- The global general error event definition, never null.
-
generalErrorRaisable
BpmnRaisableError generalErrorRaisable()
ABpmnRaisableEscalationthat can be thrown by BPMN parts corresponding to aWorkflowNodewhose execution can end abruptly with anNodeThrewException. Other errors can be used, but implementations are strongly recommended to use this generic general error.Only the
error codematters. You can either use a reference to this global error (e.g. viaEventDefinitionContaining.eventDefinitionReferences()), or create a newErrorwith the same error code. But prefer using a reference to keep the model small and clean.- Returns:
- The global general error instance, never null.
-
item
de.xima.bpmn_model.api.element.bpmn.common.ItemDefinition item(Object id)
Gets a globalItemDefinitionwith the given ID. If no item definition with the given ID exists, creates a new item definition. If an item definition with the given ID already exists, returns that item definition.- Parameters:
id- The unique ID of the item definition. This is NOT theIDof the BPMN element.- Returns:
- The global item definition with the given ID, never null.
-
item
de.xima.bpmn_model.api.element.bpmn.common.ItemDefinition item(Object... id)
Gets a globalItemDefinitionwith the given ID. If no item definition with the given ID exists, creates a new item definition. If an item definition with the given ID already exists, returns that item definition.- Parameters:
id- The unique ID of the item definition. When multiple values are given, this is considered a compound ID, and the order is important. This is NOT theIDof the BPMN element.- Returns:
- The global item definition with the given ID, never null.
-
item
de.xima.bpmn_model.api.element.bpmn.common.ItemDefinition item(de.xima.bpmn_model.api.element.bpmn.common.ItemKind itemKind, QName structure, boolean collection)Gets a globalItemDefinitionfor the given item kind, qualified name and collection flag. If no item definition with the given data exists, creates a new item definition. If an item definition with the given data already exists, returns that item definition.- Returns:
- The global item definition with the given ID, never null.
-
labelStyle
de.xima.bpmn_model.api.element.bpmndi.BpmnLabelStyle labelStyle(WorkflowBpmnLabelStyleDefinition style)
Gets the globalBpmnLabelStylefor the given style definition. Multiple calls to this method with the same (or equivalent) style definition will return the same instance. The BPMN label style will be added to the appropriateBpmnDiagramand can be used in the BPMN model, you do not have to add it manually.- Parameters:
style- The style definition to get the label style for. This should be a- Returns:
- The global BPMN label style for the given style definition, never null.
-
ldapConnectionDataStore
de.xima.bpmn_model.api.element.bpmn.data.DataStore ldapConnectionDataStore(LDAPZugriff ldapConnection)
Gets the globalDataStorefor the givenLDAP connection.- Parameters:
ldapConnection- The LDAP connection to get the data store for.- Returns:
- The global data store for the given LDAP connection, never null.
-
ldapConnectionDataStore
de.xima.bpmn_model.api.element.bpmn.data.DataStore ldapConnectionDataStore(UuidEntityRef ldapConnection)
Gets the globalDataStorefor the givenLDAP connection.- Parameters:
ldapConnection- The LDAP connection to get the data store for.- Returns:
- The global data store for the given LDAP connection, never null.
-
ldapConnectionDataStore
de.xima.bpmn_model.api.element.bpmn.data.DataStore ldapConnectionDataStore(UUID ldapConnectionUuid)
Gets the globalDataStorefor the givenLDAP connectionUUID.- Parameters:
ldapConnectionUuid- The UUID of the LDAP connection to get the data store for.- Returns:
- The global data store for the given LDAP connection, never null.
-
mainCollaboration
de.xima.bpmn_model.api.element.bpmn.collaboration.Collaboration<?> mainCollaboration()
The mainCollaborationcontaining theParticipantrepresenting the formcycle workflow engine.- Returns:
- The main collaboration, never null.
-
mainDiagram
de.xima.bpmn_model.api.element.bpmndi.BpmnDiagram mainDiagram()
The mainBpmnDiagramwhich contains all diagram elements.- Returns:
- The main diagram, never null.
-
mainPlane
de.xima.bpmn_model.api.element.bpmndi.BpmnPlane mainPlane()
The mainBpmnPlaneof themainDiagram()that contains all diagram elements.- Returns:
- The main plane, never null.
-
message
de.xima.bpmn_model.api.element.bpmn.common.Message message(Object id)
Gets a globalMessagewith the given ID. If no message with the given ID exists, creates a new message. If a message with the given ID already exists, returns that message.- Parameters:
id- The ID of the message. This is NOT theIDof the BPMN element.- Returns:
- The global message with the given ID, never null.
-
message
de.xima.bpmn_model.api.element.bpmn.common.Message message(Object... id)
Gets a globalMessagewith the given ID. If no message with the given ID exists, creates a new message. If a message with the given ID already exists, returns that message.- Parameters:
id- The ID of the message. When multiple values are given, this is considered a compound ID, and the order is important. This is NOT theIDof the BPMN element.- Returns:
- The global message with the given ID, never null.
-
messageDefinition
de.xima.bpmn_model.api.element.bpmn.events.MessageEventDefinition messageDefinition(Object id)
Gets a globalMessageEventDefinitionwith the given ID. If no message event definition with the given ID exists, creates a new definition. If a definition with the given ID already exists, returns that definition.- Parameters:
id- The ID of the message event definition. This is NOT theIDof the BPMN element.- Returns:
- The global message event definition with the given ID, never null.
-
messageDefinition
de.xima.bpmn_model.api.element.bpmn.events.MessageEventDefinition messageDefinition(Object... id)
Gets a globalMessageEventDefinitionwith the given ID. If no message event definition with the given ID exists, creates a new definition. If a definition with the given ID already exists, returns that definition.- Parameters:
id- The ID of the message event definition. When multiple values are given, this is considered a compound ID, and the order is important. This is NOT theIDof the BPMN element.- Returns:
- The global message event definition with the given ID, never null.
-
operation
de.xima.bpmn_model.api.element.bpmn.service.Operation operation(de.xima.bpmn_model.api.element.bpmn.service.Interface _interface, Object id)Gets the operation with the given ID from the givenInterface. If no operation with the given ID exists, creates a new operation and returns it.- Parameters:
_interface- The interface to get the operation from.id- The ID of the operation to get. This is NOT theIDof the BPMN element. Must be unique within the scope of the given interface.- Returns:
- The operation, never null.
-
operation
de.xima.bpmn_model.api.element.bpmn.service.Operation operation(de.xima.bpmn_model.api.element.bpmn.service.Interface _interface, Object... id)Gets the operation with the given ID from the givenInterface. If no operation with the given ID exists, creates a new operation and returns it.- Parameters:
_interface- The interface to get the operation from.id- The ID of the operation to get. When multiple values are given, this is considered a compound ID, and the order is important. Must be unique within the scope of the given interface. This is NOT theIDof the BPMN element.- Returns:
- The operation, never null.
-
signal
de.xima.bpmn_model.api.element.bpmn.events.Signal signal(String signalName, OnRaisableMissing onMissing)
Gets the global BPMNSignalwith the given ID.Unlike
errorsandescalations, signals do not have a code. They are referenced directly by events, i.e. each newsignalinstance constitutes a new signal, even if they have the samename. However, since some BPMN tools rely on the name of the signal for identification, we also treat the name as a unique identifier for signals. Passing the same signal name multiple times will return the same signal instance.- Parameters:
signalName- Thenameof the signal to get.onMissing- How to proceed when no signal with the given name exists yet.- Returns:
- The global signal instance for the given ID, never null.
-
signalEventDefinition
de.xima.bpmn_model.api.element.bpmn.events.SignalEventDefinition signalEventDefinition(String signalName, OnRaisableMissing onMissing)
The globalEventDefinitioncorresponding to thesignal(String, OnRaisableMissing). Can be used when creating new events, viaEventDefinitionContaining.eventDefinitionReferences().- Parameters:
signalName- Thenameof the signal to get.onMissing- How to proceed when no signal with the given name exists yet.- Returns:
- The global signal event definition with the given ID, never null.
-
signalRaisable
BpmnRaisableSignal signalRaisable(String signalName, OnRaisableMissing onMissing)
Gets the globalBpmnRaisableSignalwith the given ID.Unlike
errorsandescalations, signals do not have a code. They are referenced directly by events, i.e. each newsignalinstance constitutes a new signal, even if they have the samename. However, since some BPMN tools rely on the name of the signal for identification, we also treat the name as a unique identifier for signals. Passing the same signal name multiple times will return the same signal instance.- Parameters:
signalName- Thenameof the signal to get.onMissing- How to proceed when no signal with the given name exists yet.- Returns:
- The global signal instance for the given ID, never null.
-
terminateEventDefinition
de.xima.bpmn_model.api.element.bpmn.events.TerminateEventDefinition terminateEventDefinition()
The globalEventDefinitionfor terminating aProcessorSubProcess. Can be used when creating new events, viaEventDefinitionContaining.eventDefinitionReferences().Note: A terminate event inside a
SubProcessonly terminates the sub process, not the entire process. If you wish to terminate the entire process, useterminationEscalation()orterminationEscalationEventDefinition()instead.- Returns:
- The global terminate event definition, never null.
-
terminationEscalation
de.xima.bpmn_model.api.element.bpmn.common.Escalation terminationEscalation()
A BPMNEscalationthat can be thrown by BPMN parts corresponding to aWorkflowNodewhose execution can end abruptly with aNodeReturnedException.BPMN does not allow
sub processesto terminate the execution of their parent process. As such, it is hard to model workflows withreturn statementsinside e.g. a block that requires a sub processes, such as atry-catch block. As a workaround, we throw anEscalationinstead, which we can catch at the top-levelProcessand treat accordingly.Only the
escalation codematters. You can either use a reference to this global escalation (e.g. viaEventDefinitionContaining.eventDefinitionReferences()), or create a newEscalationwith the same escalation code. But prefer using a reference to keep the model small and clean.- Returns:
- The global termination escalation instance, never null.
-
terminationEscalationCode
String terminationEscalationCode()
A BPMNEscalationthat can be thrown by BPMN parts corresponding to aWorkflowNodewhose execution can end abruptly with aNodeReturnedException.BPMN does not allow
sub processesto terminate the execution of their parent process. As such, it is hard to model workflows withreturn statementsinside e.g. a block that requires a sub processes, such as atry-catch block. As a workaround, we throw anEscalationinstead, which we can catch at the top-levelProcessand treat accordingly.This returns the
escalation codefor the termination escalation.- Returns:
- The global termination escalation code, never null.
-
terminationEscalationEventDefinition
de.xima.bpmn_model.api.element.bpmn.events.EscalationEventDefinition terminationEscalationEventDefinition()
The globalEventDefinitioncorresponding to theterminationEscalation(). Can be used when creating new events, viaEventDefinitionContaining.eventDefinitionReferences().- Returns:
- The global termination escalation event definition, never null.
-
terminationEscalationRaisable
BpmnRaisableEscalation terminationEscalationRaisable()
ABpmnRaisableEscalationthat can be thrown by BPMN parts corresponding to aWorkflowNodewhose execution can end abruptly with aNodeReturnedException.BPMN does not allow
sub processesto terminate the execution of their parent process. As such, it is hard to model workflows withreturn statementsinside e.g. a block that requires a sub processes, such as atry-catch block. As a workaround, we throw anEscalationinstead, which we can catch at the top-levelProcessand treat accordingly.Only the
escalation codematters. You can either use a reference to this global escalation (e.g. viaEventDefinitionContaining.eventDefinitionReferences()), or create a newEscalationwith the same escalation code. But prefer using a reference to keep the model small and clean.- Returns:
- The global termination escalation instance, never null.
-
webDavConnectionDataStore
de.xima.bpmn_model.api.element.bpmn.data.DataStore webDavConnectionDataStore(WebDavAccess webDavConnection)
Gets the globalDataStorefor the givenWebDAV.- Parameters:
webDavConnection- The WebDAV connection to get the data store for.- Returns:
- The global data store for the given WebDAV connection, never null.
-
webDavConnectionDataStore
de.xima.bpmn_model.api.element.bpmn.data.DataStore webDavConnectionDataStore(UuidEntityRef webDavConnection)
Gets the globalDataStorefor the givenWebDAV.- Parameters:
webDavConnection- The WebDAV connection to get the data store for.- Returns:
- The global data store for the given WebDAV connection, never null.
-
webDavConnectionDataStore
de.xima.bpmn_model.api.element.bpmn.data.DataStore webDavConnectionDataStore(UUID webDavConnectionUuid)
Gets the globalDataStorefor the givenLDAP connectionUUID.- Parameters:
webDavConnectionUuid- The UUID of the WebDAV connection to get the data store for.- Returns:
- The global data store for the given WebDAV connection, never null.
-
-