Class WorkContextUtils

java.lang.Object
com.redhat.parodos.workflow.utils.WorkContextUtils

public class WorkContextUtils extends Object
Util Class to parse WorkContext
Author:
Richard Wang (Github: richardW98)
  • Method Details

    • getProjectId

      public static String getProjectId(WorkContext workContext)
      method to get project id from workContext
      Parameters:
      workContext -
      Returns:
      project id
    • getMainExecutionId

      public static String getMainExecutionId(WorkContext workContext)
      get main workflow execution id from workContext
      Parameters:
      workContext -
      Returns:
      main workflow execution id
    • addParameter

      public static void addParameter(WorkContext workContext, String key, String value)
      add a new common parameter to workContext
      Parameters:
      workContext -
      key - parameter name
      value - parameter value
    • getAllParameters

      public static Map<String,String> getAllParameters(WorkContext workContext, String name)
      get all available parameters for a task
      Parameters:
      workContext -
      name - task name
      Returns:
      Map of parameters