public interface SubWorkflowsCreationContext extends ProcessExecutionContext, DataContext
SubWorkflowsInvocationBean.handleCreateSubWorkflows(SubWorkflowsCreationContext)
ProcessExecutionContext.WorkflowPermission
Modifier and Type | Method and Description |
---|---|
void |
launchSubWorkflows()
Launches all registered sub-workflows.
|
ProcessLauncher |
registerSubWorkflow(AdaptationName aWorkflowModel,
String aSubWorkflowName)
Registers the launch of a sub-workflow.
|
void |
setForegroundSubWorkflow(ProcessLauncher foregroundSubWorkflow)
Registers which sub-workflow should be opened, accordingly to the progress strategy of the previous
step.
|
createMailSpec, getProcessInstanceDescription, getProcessInstanceLabel, modifyProcessPriority
getProcessInstance, getProcessInstanceCreator, getProcessInstanceKey, getProfileForPermission, getPublishedProcessKey, getRepository, getSession
setVariableString
getVariableNames, getVariableString, isVariableDefined
ProcessLauncher registerSubWorkflow(AdaptationName aWorkflowModel, String aSubWorkflowName) throws OperationException
aWorkflowModel
- name of the workflow model to use for the sub workflow launch.aSubWorkflowName
- name of the workflow for the launch. This name is useful to retrieve a launched
sub workflow in the method
SubWorkflowsCompletionContext.getCompletedSubWorkflow(String)
OperationException
void setForegroundSubWorkflow(ProcessLauncher foregroundSubWorkflow) throws OperationException
foregroundSubWorkflow
- sub-workflow to be set as foreground.OperationException
void launchSubWorkflows() throws OperationException
IllegalArgumentException
- if a specified input parameter name is not declared in the sub workflow
definition's data context,
or the corresponding variable is not declared as being an input parameter.OperationException