Package com.orchestranetworks.workflow
Class BuiltInTrigger_launchWorkflow
java.lang.Object
com.orchestranetworks.schema.trigger.TableTrigger
com.orchestranetworks.workflow.BuiltInTrigger_launchWorkflow
- All Implemented Interfaces:
com.orchestranetworks.schema.trigger.BuiltInTrigger
public final class BuiltInTrigger_launchWorkflow
extends TableTrigger
implements com.orchestranetworks.schema.trigger.BuiltInTrigger
Built-in trigger to start a workflow and initialize its context.
This trigger can be specified for any table in a data model.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classRepresents the event that launched the workflow. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the name of the data context variable that will contain the current dataspace reference.Returns the name of the data context variable that will contain the event that launched the workflow.Returns the name of the data context variable that will contain the current dataset reference.Returns the name of the data context variable that will contain the current record XPath (the primary key of the record in the table).Returns the name of the data context variable that will contain the current table XPath.getParameterDescription(String parameterName, Locale aLocale) Returns the description of the parameter in the specified locale.getParameterLabelOrName(String parameterName, Locale aLocale) Returns the label of the parameter in the specified locale, if it exists, otherwise returns the localized name of the parameter.Returns the publication name of the workflow to launch.getWorkflowDescription(Locale aLocale) Returns the description of the launched workflow, for the specified locale.getWorkflowLabel(Locale aLocale) Returns the label of the launched workflow, for the specified locale.voidLaunches the defined workflow if the event 'create' is enabled.voidLaunches the defined workflow if the event 'delete' is enabled.voidLaunches the defined workflow if the event 'modify' is enabled.booleanReturnstrueif the workflow is to be launched on the event 'afterCreate'.booleanReturnstrueif the workflow is to be launched on the event 'afterDelete'.booleanReturnstrueif the workflow is to be launched on the event 'afterModify'.voidsetEnableFor_create(boolean enableForCreate) If set totrue, declares that the workflow is to be launched on the event 'afterCreate'.voidsetEnableFor_delete(boolean enableForDelete) If set totrue, declares that the workflow is to be launched on the event 'afterDelete'.voidsetEnableFor_modify(boolean enableForModify) If set totrue, declares that the workflow is to be launched on the event 'afterModify'.voidsetMappingWithDataContext_branch(String mappingWithDataContext_branch) Sets the name of the data context variable that will contain the current dataspace name.voidsetMappingWithDataContext_incomingEvent(String mappingWithDataContextIncomingEvent) Sets the name of the data context variable that will contain the event that has launched the workflow.voidsetMappingWithDataContext_instance(String mappingWithDataContext_instance) Sets the name of the data context variable that will contain the current dataset reference.voidsetMappingWithDataContext_xpathRecord(String mappingWithDataContextXPathRecord) Sets the name of the data context variable that will contain the current record XPath (primary key of the record in the table).voidsetMappingWithDataContext_xpathTable(String mappingWithDataContextXPathTable) Sets the name of the data context variable that will contain the current table XPath.voidsetPublicationName(String aPublicationName) voidsetup(TriggerSetupContext aContext) This method is called when the data model is loaded, to check that this rule is consistent with the data model that defines it and to prepare this instance.voidsetWorkflowDescription(String workflowDescription) Sets the default description of the launched workflow.voidsetWorkflowDescription(Locale aLocale, String workflowDescription) Sets the description of the launched workflow, for the specified locale.voidsetWorkflowLabel(String aWorkflowLabel) Sets the default label of the launched workflow.voidsetWorkflowLabel(Locale aLocale, String aWorkflowLabel) Sets the label of the launched workflow, for the specified locale.Methods inherited from class com.orchestranetworks.schema.trigger.TableTrigger
handleBeforeCreate, handleBeforeDelete, handleBeforeModify, handleBeforeTransactionCancel, handleBeforeTransactionCommit, handleNewContext
-
Constructor Details
-
BuiltInTrigger_launchWorkflow
public BuiltInTrigger_launchWorkflow()
-
-
Method Details
-
setup
Description copied from class:TableTriggerThis method is called when the data model is loaded, to check that this rule is consistent with the data model that defines it and to prepare this instance.Do note that during this step, all models may not be properly loaded. Thus, the repository should not be accessed during this step.
- Specified by:
setupin classTableTrigger
-
handleAfterCreate
Launches the defined workflow if the event 'create' is enabled.- Overrides:
handleAfterCreatein classTableTrigger- Throws:
OperationException- if the publication name is empty.- See Also:
-
handleAfterDelete
Launches the defined workflow if the event 'delete' is enabled.- Overrides:
handleAfterDeletein classTableTrigger- Throws:
OperationException- if the publication name is empty.- See Also:
-
handleAfterModify
Launches the defined workflow if the event 'modify' is enabled.- Overrides:
handleAfterModifyin classTableTrigger- Throws:
OperationException- if the publication name is empty.- See Also:
-
getPublicationName
Returns the publication name of the workflow to launch. -
setPublicationName
- Parameters:
aPublicationName- publication name of the workflow to launch. This parameter is required to start the workflow.
-
getWorkflowLabel
Returns the label of the launched workflow, for the specified locale. -
setWorkflowLabel
Sets the label of the launched workflow, for the specified locale.- Parameters:
aWorkflowLabel- label of the launched workflow, in the locale of the current user.
-
setWorkflowLabel
Sets the default label of the launched workflow. -
getWorkflowDescription
Returns the description of the launched workflow, for the specified locale. -
setWorkflowDescription
Sets the description of the launched workflow, for the specified locale.- Parameters:
workflowDescription- description of the launched workflow, in the locale of the current user.
-
setWorkflowDescription
Sets the default description of the launched workflow. -
isEnableFor_create
public boolean isEnableFor_create()Returnstrueif the workflow is to be launched on the event 'afterCreate'. -
setEnableFor_create
public void setEnableFor_create(boolean enableForCreate) If set totrue, declares that the workflow is to be launched on the event 'afterCreate'. -
isEnableFor_delete
public boolean isEnableFor_delete()Returnstrueif the workflow is to be launched on the event 'afterDelete'. -
setEnableFor_delete
public void setEnableFor_delete(boolean enableForDelete) If set totrue, declares that the workflow is to be launched on the event 'afterDelete'. -
isEnableFor_modify
public boolean isEnableFor_modify()Returnstrueif the workflow is to be launched on the event 'afterModify'. -
setEnableFor_modify
public void setEnableFor_modify(boolean enableForModify) If set totrue, declares that the workflow is to be launched on the event 'afterModify'. -
getMappingWithDataContext_branch
Returns the name of the data context variable that will contain the current dataspace reference. -
setMappingWithDataContext_branch
Sets the name of the data context variable that will contain the current dataspace name. -
getMappingWithDataContext_instance
Returns the name of the data context variable that will contain the current dataset reference. -
setMappingWithDataContext_instance
Sets the name of the data context variable that will contain the current dataset reference. -
getMappingWithDataContext_xpathTable
Returns the name of the data context variable that will contain the current table XPath. -
setMappingWithDataContext_xpathTable
Sets the name of the data context variable that will contain the current table XPath. -
getMappingWithDataContext_xpathRecord
Returns the name of the data context variable that will contain the current record XPath (the primary key of the record in the table). -
setMappingWithDataContext_xpathRecord
Sets the name of the data context variable that will contain the current record XPath (primary key of the record in the table). -
getMappingWithDataContext_incomingEvent
Returns the name of the data context variable that will contain the event that launched the workflow. -
setMappingWithDataContext_incomingEvent
Sets the name of the data context variable that will contain the event that has launched the workflow. -
getParameterLabelOrName
Returns the label of the parameter in the specified locale, if it exists, otherwise returns the localized name of the parameter.- Specified by:
getParameterLabelOrNamein interfacecom.orchestranetworks.schema.trigger.BuiltInTrigger
-
getParameterDescription
Returns the description of the parameter in the specified locale.- Specified by:
getParameterDescriptionin interfacecom.orchestranetworks.schema.trigger.BuiltInTrigger
-