Transition commands

getTransition

Find a transition by name.

Arguments

Argument Name Type Description

projectName

String

The name for the project that must be unique among all projects. (Required)

workflowName

String

The name of the workflow. (Required)

stateName

String

The name used for the new state (Required)

transitionName

String

The name used for the transition instance. (Required)

Usage

import com.electriccloud.client.groovy.ElectricFlow
import com.electriccloud.client.groovy.models.*


ElectricFlow ef = new ElectricFlow()

def result = ef.getTransition(
                projectName: 'test-projectName',
                workflowName: 'test-workflowName',
                stateName: 'test-stateName',
                transitionName: 'test-transitionName')

getTransitions

Retrieve all transitions in a workflow.

Arguments

Argument Name Type Description

projectName

String

The name for the project that must be unique among all projects. (Required)

workflowName

String

The name of the workflow. (Required)

stateName

String

The name used for the new state (Required)

targetState

String

Limits results to transitions that have the specified state as a target.

Usage

import com.electriccloud.client.groovy.ElectricFlow
import com.electriccloud.client.groovy.models.*


ElectricFlow ef = new ElectricFlow()

def result = ef.getTransitions(
                projectName: 'test-projectName',
                workflowName: 'test-workflowName',
                stateName: 'test-stateName'
                /* optional arguments */)