Class WorkflowLauncher
java.lang.Object
com.apgar.common.lib.workflow.launcher.WorkflowLauncher
Utility Class with common methods to launch a workflow.
- Author:
- APGAR Consulting
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidlaunch(com.orchestranetworks.instance.Repository repository, com.orchestranetworks.service.Session session, com.orchestranetworks.workflow.PublishedProcessKey workflowId, com.onwbp.adaptation.Adaptation record, com.orchestranetworks.workflow.DataContext dataContext, Integer priority) Launches a workflow process created from a record and sets its parameters.static com.orchestranetworks.workflow.ProcessLauncherResultlaunchWithResult(com.onwbp.adaptation.AdaptationHome currentHome, com.orchestranetworks.instance.Repository repository, com.orchestranetworks.service.Session session, com.orchestranetworks.workflow.PublishedProcessKey workflowId, com.orchestranetworks.workflow.DataContext dataContext, Integer priority) Creates a workflow and sets its input parameters.static com.orchestranetworks.workflow.ProcessLauncherResultlaunchWithResult(com.orchestranetworks.service.Session session, com.orchestranetworks.workflow.PublishedProcessKey workflowId, com.onwbp.adaptation.Adaptation record, com.orchestranetworks.workflow.DataContext dataContext, Integer priority) Creates a workflow from a record and sets its input parameters.static com.orchestranetworks.workflow.ProcessLauncherResultlaunchWithResultDescription(com.onwbp.adaptation.AdaptationHome currentHome, com.orchestranetworks.instance.Repository repository, com.orchestranetworks.service.Session session, com.orchestranetworks.workflow.PublishedProcessKey publishedProcessKey, com.orchestranetworks.workflow.DataContext dataContext, Integer priority) Creates a workflow and sets its input parameters, including a description.static com.orchestranetworks.workflow.ProcessLauncherResultlaunchWithWorkspaceCreationWithResult(com.orchestranetworks.service.Session session, com.orchestranetworks.workflow.PublishedProcessKey workflowId, com.onwbp.adaptation.Adaptation record, com.orchestranetworks.workflow.DataContext dataContext, Integer priority) Creates a workflow from a record and sets its input parameters.
-
Method Details
-
launchWithResult
public static com.orchestranetworks.workflow.ProcessLauncherResult launchWithResult(com.onwbp.adaptation.AdaptationHome currentHome, com.orchestranetworks.instance.Repository repository, com.orchestranetworks.service.Session session, com.orchestranetworks.workflow.PublishedProcessKey workflowId, com.orchestranetworks.workflow.DataContext dataContext, Integer priority) throws com.orchestranetworks.service.OperationException Creates a workflow and sets its input parameters.- Parameters:
currentHome- Current dataspacerepository- Repositorysession- SessionworkflowId- Publish key of the WorkflowdataContext- DataContextpriority- Workflow model priority- Returns:
- a workflow instance
- Throws:
com.orchestranetworks.service.OperationException- Exception
-
launchWithResultDescription
public static com.orchestranetworks.workflow.ProcessLauncherResult launchWithResultDescription(com.onwbp.adaptation.AdaptationHome currentHome, com.orchestranetworks.instance.Repository repository, com.orchestranetworks.service.Session session, com.orchestranetworks.workflow.PublishedProcessKey publishedProcessKey, com.orchestranetworks.workflow.DataContext dataContext, Integer priority) throws com.orchestranetworks.service.OperationException Creates a workflow and sets its input parameters, including a description.- Parameters:
currentHome- Current dataspacerepository- Repositorysession- SessionpublishedProcessKey- Publish key of the WorkflowdataContext- DataContextpriority- Workflow model priority- Returns:
- a workflow instance with description
- Throws:
com.orchestranetworks.service.OperationException- Exception
-
launchWithResult
public static com.orchestranetworks.workflow.ProcessLauncherResult launchWithResult(com.orchestranetworks.service.Session session, com.orchestranetworks.workflow.PublishedProcessKey workflowId, com.onwbp.adaptation.Adaptation record, com.orchestranetworks.workflow.DataContext dataContext, Integer priority) throws com.orchestranetworks.service.OperationException Creates a workflow from a record and sets its input parameters.- Parameters:
session- SessionworkflowId- Publish key of the Workflowrecord- AdaptationdataContext- DataContextpriority- Workflow model priority- Returns:
- a workflow instance
- Throws:
com.orchestranetworks.service.OperationException- Exception
-
launchWithWorkspaceCreationWithResult
public static com.orchestranetworks.workflow.ProcessLauncherResult launchWithWorkspaceCreationWithResult(com.orchestranetworks.service.Session session, com.orchestranetworks.workflow.PublishedProcessKey workflowId, com.onwbp.adaptation.Adaptation record, com.orchestranetworks.workflow.DataContext dataContext, Integer priority) throws com.orchestranetworks.service.OperationException Creates a workflow from a record and sets its input parameters.- Parameters:
session- SessionworkflowId- Publish key of the Workflowrecord- AdaptationdataContext- DataContextpriority- Workflow model priority- Returns:
- a workflow instance
- Throws:
com.orchestranetworks.service.OperationException- Exception
-
launch
public static void launch(com.orchestranetworks.instance.Repository repository, com.orchestranetworks.service.Session session, com.orchestranetworks.workflow.PublishedProcessKey workflowId, com.onwbp.adaptation.Adaptation record, com.orchestranetworks.workflow.DataContext dataContext, Integer priority) throws com.orchestranetworks.service.OperationException Launches a workflow process created from a record and sets its parameters.- Parameters:
repository- Repositorysession- SessionworkflowId- PublishedProcessKeyrecord- AdaptationdataContext- DataContextpriority- Workflow model priority- Throws:
com.orchestranetworks.service.OperationException- Exception
-