LaunchWorkflow
You can use this function for Optiva Workflows.
Purpose
Launch a workflow from within another workflow and include input
parameters. The
LaunchWorkflow
function saves all data from the first
action set before launching a new action set. This is related to
StartWorkflow
.
LaunchWorkflow
does not include a start date. It
provides default input parameters that can be changed by the user when the
workflow is run.
Syntax
LaunchWorkflow(ActionSetCode [,Symbol, Object][,Input Parameter1, Input Parameter2...])
Part | Description |
---|---|
ActionSetCode
|
Code for the workflow action set. |
Symbol
|
Optional. The workflow automatically runs
on the current symbol.
You can also use empty quotation marks to indicate the current symbol or enter the symbol name. |
Object
|
Optional. The workflow automatically runs
on the current object.
You can also use empty quotation marks to indicate the current object or enter the object code. |
Input Parameters
|
Optional. Input parameters from the action
set are used as defaults. The
Launch Workflow dialog opens where the
default parameters can be changed as necessary by the user before starting the
workflow. Input parameters can also be read-only.
Along with information such as the system file name and other attributes, the URL must not exceed the limit of 2000 characters. |
Example
This example launches the ITEM_APPROVAL
workflow from within the FORMULA_APPROVAL
workflow. The
input parameters are values for the ITEM_APPROVAL
workflow. These parameters are VENDOR
and DENSITY
.
'Check status of an item. If status value is below a specified value,
'start workflow to approve the item.
launchWorkflow("ITEM_APPROVAL", "ITEM", "00031", "ACME", 1.75)
After the workflow starts, a dialog displays the values of the input
parameters. For this example, the values are for VENDOR
and
DENSITY
. Users can specify the values manually.