Class WorkflowLauncher

java.lang.Object
com.apgar.common.lib.workflow.launcher.WorkflowLauncher

public class WorkflowLauncher extends Object
Utility Class with common methods to launch a workflow.
Author:
APGAR Consulting
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
    Launches a workflow process created from a record and sets its parameters.
    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)
    Creates a workflow and sets its input parameters.
    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)
    Creates a workflow from a record and sets its input parameters.
    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)
    Creates a workflow and sets its input parameters, including a description.
    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)
    Creates a workflow from a record and sets its input parameters.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 dataspace
      repository - Repository
      session - Session
      workflowId - Publish key of the Workflow
      dataContext - DataContext
      priority - 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 dataspace
      repository - Repository
      session - Session
      publishedProcessKey - Publish key of the Workflow
      dataContext - DataContext
      priority - 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 - Session
      workflowId - Publish key of the Workflow
      record - Adaptation
      dataContext - DataContext
      priority - 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 - Session
      workflowId - Publish key of the Workflow
      record - Adaptation
      dataContext - DataContext
      priority - 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 - Repository
      session - Session
      workflowId - PublishedProcessKey
      record - Adaptation
      dataContext - DataContext
      priority - Workflow model priority
      Throws:
      com.orchestranetworks.service.OperationException - Exception