Back to index
Summary
Creates a new transition definition for workflow definition.projectNameStringrequiredThe name for the project that must be unique among all projects. workflowDefinitionNameStringrequiredThe name of the workflow definition. stateDefinitionNameStringrequiredThe name used for the state definition. transitionDefinitionNameStringrequiredThe name used for the transition. targetStateStringrequiredTarget state for the transition definition. actualParameterArrayoptionalThe actual parameters to the transition's target state. conditionStringoptionalA fixed text or text embedding property references that is evaluated into a logical TRUE or FALSE. An empty string, a 0 or false is interpreted as FALSE. Any other result string is interpreted as TRUE.descriptionStringoptionalComment text describing this object that is not interpreted at all by CloudBees CD/RO. triggerStringoptionalSpecifies the type of trigger for this transaction. Possible values: "manual" , "onCompletion" , "onEnter" , "onStart" |
Usage
Perl
$cmdr->createTransitionDefinition( "test-projectName", # projectName "test-workflowDefinitionName", # workflowDefinitionName "test-stateDefinitionName", # stateDefinitionName "test-transitionDefinitionName", # transitionDefinitionName "test-targetState" # targetState # optionals );
ectool
ectool createTransitionDefinition \ "test-projectName" `# projectName` \ "test-workflowDefinitionName" `# workflowDefinitionName` \ "test-stateDefinitionName" `# stateDefinitionName` \ "test-transitionDefinitionName" `# transitionDefinitionName` \ "test-targetState" `# targetState` \ # optionals