VMware Cloud Community
abetzEA
Contributor
Contributor

What are the available values for the ExecuteWhen field for a StateChange workflow?

The StateChange workflows we are creating via Visual Studios via the DynamicOps Cloud Development Kit are automatically being set to run PreActivityExecution is there any documentation on the available values for the ExecuteWhen field?

<?xml version="1.0" encoding="utf-8"?>

<!--

Autogenerated xml file created by the DynamicOps Cloud Development Kit (TM) Visual Studio Addin

The Workflow "Foo" will be executed when a Machine Transitions to the State(s) "BuildingMachine".

-->

<plugins xmlns="http://dynamicops.com/schemas/externalwf">

  <plugin fullName="DynamicOps.External.RepositoryWorkflows.InvokeRepositoryWorkflow" priority="1">

    <MasterWFStateCriteria>BuildingMachine</MasterWFStateCriteria>

    <MasterWFTypeFullNameCriteria>*</MasterWFTypeFullNameCriteria>

    <ExecuteWhen>PreActivityExecution</ExecuteWhen>

    <AssemblyPath>[ExternalWorkflowsDirectory]\DynamicOps.External.RepositoryWorkflows.dll</AssemblyPath>

    <AllPropertiesExist>

      <Property>Foo</Property>

    </AllPropertiesExist>

    <WorkflowArguments>

      <NameValue name="WorkflowName">Foo</NameValue>

      <NameValue name="WorkflowTimeout">01:00:00</NameValue>

      <NameValue name="FailureState">DeactivateMachine</NameValue>

    </WorkflowArguments>

  </plugin>

</plugins>

0 Kudos
1 Reply
cdecanini_
VMware Employee
VMware Employee

I have also failed to find the documentation for this. I have put together a list of the states I have found using vCO:

Approved

AwaitingApproval

BuildingMachine

Complete

DeactivateMachine

Disposing

Expired

Finalized

Finished

InstallTools

Leased

MachineActivated

MachineProvisioned

Off

On

Pending

Provisioning

Rebooting

RegisterMachine

Rejected

Requested

Resetting

Resubmitted

ShuttingDown

Suspending

TurningOff

TurningOn

UnprovisionMachine

Waiting

WaitingToBuild

I have not tested this so feedback is welcome.

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you! Visit http://www.vcoteam.info & http://blogs.vmware.com/orchestrator for vCenter Orchestrator tips and tutorials - @vCOTeam on Twitter
0 Kudos