createStateDefinition
Creates a new state definition for a workflow definition. Optionally, a state may launch either a procedure or a sub-workflow as its process
when the state is entered.
Arguments
Argument Name | Type | Description |
---|---|---|
projectName |
String |
(Required) The name for the project that must be unique among all projects. |
workflowDefinitionName |
String |
(Required) The name of the workflow definition. |
stateDefinitionName |
String |
(Required) The name used for the state definition. |
actualParameters |
Map |
The actual parameters to the state definition’s process. |
description |
String |
Comment text describing this object that is not interpreted at all by CloudBees CD/RO. |
startable |
Boolean |
True if the workflow can begin in this state. |
subprocedure |
String |
The name of the subprocedure. |
subproject |
String |
The name of the project that contains the subprocedure. |
substartingState |
String |
The name of the starting state to use in the subworkflowDefinition. |
subworkflowDefinition |
String |
The name of the subworkflowDefinition. |
createTransitionDefinition
Creates a new transition definition for workflow definition.
Arguments
Argument Name | Type | Description |
---|---|---|
projectName |
String |
(Required) The name for the project that must be unique among all projects. |
workflowDefinitionName |
String |
(Required) The name of the workflow definition. |
stateDefinitionName |
String |
(Required) The name used for the state definition. |
transitionDefinitionName |
String |
(Required) The name used for the transition. |
targetState |
String |
(Required) Target state for the transition definition. |
actualParameters |
Map |
The actual parameters to the transition’s target state. |
condition |
String |
A fixed text or text embedding property references that is evaluated into a logical TRUE or FALSE. An empty string, a |
description |
String |
Comment text describing this object that is not interpreted at all by CloudBees CD/RO. |
trigger |
TransitionTrigger |
Specifies the type of trigger for this transaction. |
Positional arguments
projectName
, workflowDefinitionName
, stateDefinitionName
, transitionDefinitionName
, targetState
createWorkflowDefinition
Creates a new workflow definition for a project.
Arguments
Argument Name | Type | Description |
---|---|---|
projectName |
String |
(Required) The name for the project that must be unique among all projects. |
workflowDefinitionName |
String |
(Required) The name of the workflow definition. |
description |
String |
Comment text describing this object that is not interpreted at all by CloudBees CD/RO. |
workflowNameTemplate |
String |
The template used to name instances of this workflow definition. |
deleteStateDefinition
Deletes a state definition.
deleteTransitionDefinition
Deletes a transition definition.
Arguments
Argument Name | Type | Description |
---|---|---|
projectName |
String |
(Required) The name for the project that must be unique among all projects. |
workflowDefinitionName |
String |
(Required) The name of the workflow definition. |
stateDefinitionName |
String |
(Required) The name used for the state definition. |
transitionDefinitionName |
String |
(Required) The name used for the transition. |
deleteWorkflowDefinition
getStateDefinition
Retrieves a state definition by its name.
getStateDefinitions
Retrieves all state definitions in a workflow definition.
Arguments
Argument Name | Type | Description |
---|---|---|
projectName |
String |
(Required) The name for the project that must be unique among all projects. |
workflowDefinitionName |
String |
(Required) The name of the workflow definition. |
includeFormalParameters |
Boolean |
True means formal parameters will also be included. |
startableOnly |
Boolean |
True means only state definitions marked as startable will be included. |
getTransitionDefinition
Finds a transition definition by its name.
Arguments
Argument Name | Type | Description |
---|---|---|
projectName |
String |
(Required) The name for the project that must be unique among all projects. |
workflowDefinitionName |
String |
(Required) The name of the workflow definition. |
stateDefinitionName |
String |
(Required) The name used for the state definition. |
transitionDefinitionName |
String |
(Required) The name used for the transition. |
getTransitionDefinitions
Retrieves all transition definitions in a workflow definition.
Arguments
Argument Name | Type | Description |
---|---|---|
projectName |
String |
(Required) The name for the project that must be unique among all projects. |
workflowDefinitionName |
String |
(Required) The name of the workflow definition. |
stateDefinitionName |
String |
(Required) The name used for the state definition. |
targetState |
String |
Limits results to transition definitions that have the specified state definition as a target. |
getWorkflowDefinition
getWorkflowDefinitions
modifyStateDefinition
Modifies an existing state definition.
Arguments
Argument Name | Type | Description |
---|---|---|
projectName |
String |
(Required) The name for the project that must be unique among all projects. |
workflowDefinitionName |
String |
(Required) The name of the workflow definition. |
stateDefinitionName |
String |
(Required) The name used for the state definition. |
actualParameters |
Map |
The actual parameters to the state definition’s process. |
clearActualParameters |
Boolean |
True if the state definition should remove all actual parameters to the process. |
description |
String |
Comment text describing this object that is not interpreted at all by CloudBees CD/RO. |
newName |
String |
The new name for an existing object that is being renamed. |
startable |
Boolean |
True if the workflow can begin in this state. |
subprocedure |
String |
The name of the subprocedure. |
subproject |
String |
The name of the project that contains the subprocedure. |
substartingState |
String |
The name of the starting state to use in the subworkflowDefinition. |
subworkflowDefinition |
String |
The name of the subworkflowDefinition. |
modifyTransitionDefinition
Modifies an existing transition definition.
Arguments
Argument Name | Type | Description |
---|---|---|
projectName |
String |
(Required) The name for the project that must be unique among all projects. |
workflowDefinitionName |
String |
(Required) The name of the workflow definition. |
stateDefinitionName |
String |
(Required) The name used for the state definition. |
transitionDefinitionName |
String |
(Required) The name used for the transition. |
actualParameters |
Map |
The actual parameters to the transition’s target state. |
clearActualParameters |
Boolean |
True if the transition should remove all actual parameters to the target state. |
condition |
String |
A fixed text or text embedding property references that is evaluated into a logical TRUE or FALSE. An empty string, a |
description |
String |
Comment text describing this object that is not interpreted at all by CloudBees CD/RO. |
newName |
String |
The new name for an existing object that is being renamed. |
targetState |
String |
Target state for the transition definition. |
trigger |
TransitionTrigger |
Specifies the type of trigger for this transaction. |
modifyWorkflowDefinition
Modifies an existing workflow definition.
Arguments
Argument Name | Type | Description |
---|---|---|
projectName |
String |
(Required) The name for the project that must be unique among all projects. |
workflowDefinitionName |
String |
(Required) The name of the workflow definition. |
description |
String |
Comment text describing this object that is not interpreted at all by CloudBees CD/RO. |
newName |
String |
The new name for an existing object that is being renamed. |
workflowNameTemplate |
String |
The template used to name instances of this workflow definition. |
moveStateDefinition
Moves a state definition within a workflow definition.
Arguments
Argument Name | Type | Description |
---|---|---|
projectName |
String |
(Required) The name for the project that must be unique among all projects. |
workflowDefinitionName |
String |
(Required) The name of the workflow definition. |
stateDefinitionName |
String |
(Required) The name used for the state definition. |
beforeStateDefinition |
String |
The name of the state definition before which |
moveTransitionDefinition
Moves a transition definition within a workflow definition.
Arguments
Argument Name | Type | Description |
---|---|---|
projectName |
String |
(Required) The name for the project that must be unique among all projects. |
workflowDefinitionName |
String |
(Required) The name of the workflow definition. |
stateDefinitionName |
String |
(Required) The name used for the state definition. |
transitionDefinitionName |
String |
(Required) The name used for the transition. |
beforeTransitionDefinition |
String |
The name of the transition before which |