jrerun

reruns an exited, done, or running flow.

Synopsis

jrerun [-v "var=value[;var1=value1;...]"] flow_id [flow_id ...]

jrerun [-h]|[-V]

Description

You use the jrerun command to rerun a flow. The flow must have a state of Exit, Done, or Running.

The flow is rerun from the first exited job or starting point, and the flow continues to process as designed.

Note that in order to rerun the flow, work items used as starting points to rerun the flow must have their dependencies met.

If the flow contains multiple branches, the flow is rerun from the first exited jobs or starting points in each branch and continues to process as designed.

You must be the owner of a flow or a Process Manager administrator to use this command.

You cannot use this command to rerun a flow that was killed—you must trigger the flow again.

Options

-v var=value

Specifies to pass variables and their values to the flow when rerunning it. To specify a list of variables, separate the variable and value pairs with a semi-colon (;). The value of the variable is available only within the scope of the flow itself—local variables only.

flow_id

Specifies the ID of the flow to rerun. To specify a list of flows, separate the flow IDs with a space.

-h

Prints the command usage to stderr and exits.

-V

Prints the Process Manager release version to stderr and exits.

Examples

jrerun 1234

reruns the flow with the flow ID 1234.

jrerun -v "USER=jdoe" 277

reruns the flow with the flow ID 277 and passes it a value of jdoe for the USER variable.