Class AMessageStartEventBpmnModeler<Model>
java.lang.Object
de.xima.fc.workflow.bpmn.AStartEventBpmnModeler<Model>
de.xima.fc.workflow.bpmn.AMessageStartEventBpmnModeler<Model>
- Type Parameters:
Model- Type of the trigger's custom parameters model.
- All Implemented Interfaces:
IWorkflowTriggerBpmnModeler<Model>
- Direct Known Subclasses:
FcCatchErrorBpmnModeler, FcDoiVerifiedBpmnModeler, FcFormRecordMessagePostedBpmnModeler, FcFormRecordMessageUploadRequestFulfilledBpmnModeler, FcFormSubmitButtonBpmnModeler, FcInvitationErrorBpmnModeler, FcInvitationSentBpmnModeler, FcManualBpmnModeler, FcQualifiedFormSubmitButtonBpmnModeler, FcStateTimerBpmnModeler, FcUserInvocationBpmnModeler
Base class for BPMN modelers that can be represented as a
message start event. You need to implement various methods regarding the message structure, type, and operation.
- Since:
- 8.4.0
-
Nested Class Summary
Nested classes/interfaces inherited from class AStartEventBpmnModeler
AStartEventBpmnModeler.IStatefulStartEventPostProcessor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final List<de.xima.bpmn_model.api.element.bpmn.events.MessageEventDefinition> createEventDefinition(IModelWorkflowTriggerParams<Model> params, IWorkflowBpmnModelContext context, IBoundMessageLocalizer localizer) Creates theevent definitionsfor the start event in the BPMN model.protected abstract StringgetInterfaceName(IModelWorkflowTriggerParams<Model> params, IWorkflowBpmnModelContext context) The technical name of theInterfacethe declares theoperationusedbythemessage event.protected StringgetMessageName(IModelWorkflowTriggerParams<Model> params, IWorkflowBpmnModelContext context) Gets the technicalnameof theMessagethat triggers thestart event.protected abstract QNamegetMessageStructure(IModelWorkflowTriggerParams<Model> params, IWorkflowBpmnModelContext context) protected abstract StringgetMessageType(IModelWorkflowTriggerParams<Model> params, IWorkflowBpmnModelContext context) Gets the internal identifier of theMessagethat triggers thestart event.protected abstract StringgetOperationName(IModelWorkflowTriggerParams<Model> params, IWorkflowBpmnModelContext context) The technical name of theOperationusedbythemessage event.Methods inherited from class AStartEventBpmnModeler
createDetails, createName, createStartEventLayoutPostProcessor, modelTrigger
-
Constructor Details
-
AMessageStartEventBpmnModeler
public AMessageStartEventBpmnModeler()
-
-
Method Details
-
createEventDefinition
protected final List<de.xima.bpmn_model.api.element.bpmn.events.MessageEventDefinition> createEventDefinition(IModelWorkflowTriggerParams<Model> params, IWorkflowBpmnModelContext context, IBoundMessageLocalizer localizer) Description copied from class:AStartEventBpmnModelerCreates theevent definitionsfor the start event in the BPMN model. This is usually only a single event definition. If multiple definitions are returned, the BPMN standard considers this a Multiple event. If no definitions are returned, the BPMN standard considers this as a None event.- Specified by:
createEventDefinitionin classAStartEventBpmnModeler<Model>- Parameters:
params- The parameters with the trigger to model, as provided by the workflow engine.context- The BPMN model context, as provided by the workflow engine.localizer- The localizer to use for localizing the name. This is the same as theboundMessageLocalizerobtained from thecontext.- Returns:
- A list of event definitions for the start event in the BPMN model.
-
getInterfaceName
protected abstract String getInterfaceName(IModelWorkflowTriggerParams<Model> params, IWorkflowBpmnModelContext context) The technical name of theInterfacethe declares theoperationusedbythemessage event.- Parameters:
params- The parameters with the trigger to model, as provided by the workflow engine.context- The BPMN model context, as provided by the workflow engine.- Returns:
- The name of the interface.
-
getMessageName
protected String getMessageName(IModelWorkflowTriggerParams<Model> params, IWorkflowBpmnModelContext context) Gets the technicalnameof theMessagethat triggers thestart event. The default implementation returns themessage type. You may override this method to provide a more descriptive name.- Parameters:
params- The parameters with the trigger to model, as provided by the workflow engine.context- The BPMN model context, as provided by the workflow engine.- Returns:
- The type of the message, which is used to identify the message in the BPMN model.
-
getMessageStructure
protected abstract QName getMessageStructure(IModelWorkflowTriggerParams<Model> params, IWorkflowBpmnModelContext context) - Parameters:
params- The parameters with the trigger to model, as provided by the workflow engine.context- The BPMN model context, as provided by the workflow engine.- Returns:
- The structure of the message.
-
getMessageType
protected abstract String getMessageType(IModelWorkflowTriggerParams<Model> params, IWorkflowBpmnModelContext context) Gets the internal identifier of theMessagethat triggers thestart event.- Parameters:
params- The parameters with the trigger to model, as provided by the workflow engine.context- The BPMN model context, as provided by the workflow engine.- Returns:
- The type of the message, which is used to identify the message in the BPMN model.
-
getOperationName
protected abstract String getOperationName(IModelWorkflowTriggerParams<Model> params, IWorkflowBpmnModelContext context) The technical name of theOperationusedbythemessage event.- Parameters:
params- The parameters with the trigger to model, as provided by the workflow engine.context- The BPMN model context, as provided by the workflow engine.- Returns:
- The name of the operation.
-