# Start an instance and provide a name
startControlFlowInstance -app X -controlFlow Y -instance run_Y -profile P
# Retrieve the status (you must invoke the command multiple
# times to monitor the progress of the control flow)
getControlFlowInstanceStatus -app X -controlFlow Y -instance run_Y
To be useful in batch processing, this solution requires some custom scripting. A unique instance name must be created for each iteration. Instance names cannot be reused until the previous instance with an identical name is deleted.
# Start an instance and have a name automatically assigned
startControlFlowInstance -app X -controlFlow Y -profile P
# Display control flow instances for the specified control flow
listControlFlowInstances -app X -controlFlow Y
# Manually identify the instance name based on the output
# or use a custom script to identify the control flow instance
# name (example assumes that Y1165356017323 was assigned
# as an instance name)
# Retrieve the instance status (has to be invoked multiple times to
# monitor the progress)
getControlFlowInstanceStatus -app X -controlFlow Y -instance Y1165356017323
startControlFlowInstance does
not return the automatically generated name.