@Deprecated
public final class WorkflowOffloadingHelper
extends java.lang.Object
Constructor and Description |
---|
WorkflowOffloadingHelper()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
convertToOffloadingPayload(java.lang.String[] offloadingPayload)
Deprecated.
Converts the given payload array into a flat string for use on the job properties.
|
static boolean |
doTransportWorkflowModelWithInput(MetaDataMap arguments)
Deprecated.
Whether to include the workflow model to the offloading input.
|
static boolean |
doTransportWorkflowModelWithOutput(MetaDataMap arguments)
Deprecated.
Whether to include the workflow model to the offloading output.
|
static boolean |
doTransportWorkflowPayloadWithInput(MetaDataMap arguments)
Deprecated.
Whether to include the workflow payload to the offloading input.
|
static boolean |
doTransportWorkflowPayloadWithOutput(MetaDataMap arguments)
Deprecated.
Whether to include the workflow payload to the offloading output.
|
static ValueMap |
getJobProperties(MetaDataMap arguments)
Deprecated.
Read the job properties from the given process arguments.
|
static java.lang.String |
getJobTopic(MetaDataMap arguments)
Deprecated.
Read the job topic from the given process arguments.
|
static java.lang.String[] |
getOffloadingInput(MetaDataMap arguments)
Deprecated.
Read the generic offloading input payload from the given process arguments.
|
static java.lang.String[] |
getOffloadingOutput(MetaDataMap arguments)
Deprecated.
Read the generic offloading output payload from the given process arguments.
|
static java.lang.String |
getWorkflowModel(MetaDataMap arguments)
Deprecated.
Read the workflow model from the given process arguments.
|
static java.lang.String |
getWorkflowOffloadingInput(MetaDataMap arguments,
java.lang.String workflowPayload,
java.lang.String workflowModel)
Deprecated.
Builds the complete workflow offloading input payload.
|
static java.lang.String |
getWorkflowOffloadingOutput(MetaDataMap arguments,
java.lang.String workflowPayload,
java.lang.String workflowModel)
Deprecated.
Builds the complete workflow offloading output payload.
|
static java.lang.String |
getWorkflowPayload(java.lang.String fallbackPayload,
MetaDataMap arguments)
Deprecated.
Read the workflow payload from the given process argument or work item.
|
public static java.lang.String getJobTopic(MetaDataMap arguments)
Read the job topic from the given process arguments.
Expects the job topic be set using JobOffloadingProcessArguments.JOB_TOPIC
.
arguments
- The workflow process arguments.null
if the job topic is not set.public static ValueMap getJobProperties(MetaDataMap arguments)
Read the job properties from the given process arguments.
Expects the job properties be set using JobOffloadingProcessArguments.JOB_PROPERTIES
.
arguments
- The workflow process arguments.public static java.lang.String[] getOffloadingInput(MetaDataMap arguments)
Read the generic offloading input payload from the given process arguments.
Expects the offloading input payload be set using JobOffloadingProcessArguments.OFFLOADING_INPUT
.
arguments
- The workflow process arguments. Must not be null
.public static java.lang.String[] getOffloadingOutput(MetaDataMap arguments)
Read the generic offloading output payload from the given process arguments.
Expects the offloading output payload be set using JobOffloadingProcessArguments.OFFLOADING_OUTPUT
.
arguments
- The workflow process arguments. Must not be null
.public static java.lang.String convertToOffloadingPayload(java.lang.String[] offloadingPayload)
offloadingPayload
- The offloading payload array.null
or empty,
an empty String is returned.public static java.lang.String getWorkflowModel(MetaDataMap arguments)
Read the workflow model from the given process arguments.
Expects the workflow model be set using WorkflowOffloadingProcessArguments.WORKFLOW_MODEL
.
arguments
- The workflow process arguments.null
if the workflow model is not set.public static java.lang.String getWorkflowPayload(java.lang.String fallbackPayload, MetaDataMap arguments)
Read the workflow payload from the given process argument or work item.
Expects the workflow payload be set using WorkflowOffloadingProcessArguments.WORKFLOW_PAYLOAD
. If not set
on the arguments, it falls back to use the fallback payload.
fallbackPayload
- The workflow workflow payload to use as a fallback.arguments
- The workflow process arguments.null
if the fallback payload is not set.public static boolean doTransportWorkflowModelWithInput(MetaDataMap arguments)
Whether to include the workflow model to the offloading input.
Expects the flag be set using WorkflowOffloadingProcessArguments.OFFLOADING_INPUT_WORKFLOW_MODEL
.
arguments
- The workflow process arguments.true
if the workflow model must be included, false
otherwise. Returns
false
if the property is not set at all.public static boolean doTransportWorkflowModelWithOutput(MetaDataMap arguments)
Whether to include the workflow model to the offloading output.
Expects the flag be set using WorkflowOffloadingProcessArguments.OFFLOADING_OUTPUT_WORKFLOW_MODEL
.
arguments
- The workflow process arguments.true
if the workflow model must be included, false
otherwise. Returns
false
if the property is not set at all.public static boolean doTransportWorkflowPayloadWithInput(MetaDataMap arguments)
Whether to include the workflow payload to the offloading input.
Expects the flag be set using JobOffloadingProcessArguments.OFFLOADING_INPUT_WORKFLOW_PAYLOAD
.
arguments
- The workflow process arguments.true
if the workflow payload must be included, false
otherwise. Returns
false
if the property is not set at all.public static boolean doTransportWorkflowPayloadWithOutput(MetaDataMap arguments)
Whether to include the workflow payload to the offloading output.
Expects the flag be set using JobOffloadingProcessArguments.OFFLOADING_OUTPUT_WORKFLOW_PAYLOAD
.
arguments
- The workflow process arguments.true
if the workflow payload must be included, false
otherwise. Returns
false
if the property is not set at all.public static java.lang.String getWorkflowOffloadingInput(MetaDataMap arguments, java.lang.String workflowPayload, java.lang.String workflowModel)
Builds the complete workflow offloading input payload.
Puts the generic offloading input along with the given workflow payload and workflow model on the offloading input payload.
arguments
- The workflow process arguments. Must not be null
.workflowPayload
- The workflow payload to put on the offloading input.workflowModel
- The workflow model to put on the offloading input.null
if the given process arguments is
null
.public static java.lang.String getWorkflowOffloadingOutput(MetaDataMap arguments, java.lang.String workflowPayload, java.lang.String workflowModel)
Builds the complete workflow offloading output payload.
Puts the generic offloading output along with the given workflow payload and workflow model on the offloading output payload.
arguments
- The workflow process arguments. Must not be null
.workflowPayload
- The workflow payload to put on the offloading output.workflowModel
- The workflow model to put on the offloading output.null
if the given process arguments is
null
.Copyright © 2010 - 2020 Adobe. All Rights Reserved