Back to index
Summary
Creates a new state definition for a workflow definition. Optionally, a state may launch either a procedure or a sub-workflow as itsprocess
when the state is entered.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. actualParameterArrayoptionalThe actual parameters to the state definition's process. descriptionStringoptionalComment text describing this object that is not interpreted at all by CloudBees CD/RO. startableBooleanoptionalTrue if the workflow can begin in this state. subprocedureStringoptionalThe name of the subprocedure. subprojectStringoptionalThe name of the project that contains the subprocedure. substartingStateStringoptionalThe name of the starting state to use in the subworkflowDefinition. subworkflowDefinitionStringoptionalThe name of the subworkflowDefinition. |
Usage
Perl
$cmdr->createStateDefinition( "test-projectName", # projectName "test-workflowDefinitionName", # workflowDefinitionName "test-stateDefinitionName" # stateDefinitionName # optionals );
ectool
ectool createStateDefinition \ "test-projectName" `# projectName` \ "test-workflowDefinitionName" `# workflowDefinitionName` \ "test-stateDefinitionName" `# stateDefinitionName` \ # optionals