ThingWorx Flow > Connectors Overview > System Connectors > Windchill > Set State
Set State
Use this action to set a lifecycle state for a Windchill entity.
Using the Set State Action
To use this action in your workflow, connect it to ThingWorx Flow. To connect to the flow, do the following:
1. Drag the Set State action under the Windchill connector to the canvas, place the pointer on the action, and then click or double-click the action. The Set State action window opens.
2. Edit the label name, if needed. By default, the label name is same as the action name.
3. To add a connection, refer to the section Adding a Connection in the Windchill connector topic. The default value is Basic.
If you previously added a connection for Windchill, select a connection from the list.
4. Select an Entity Type from the list:
Part—Set a state for a part.
Document—Set a state for the specified document.
5. In the Identifier field, enter an identifier to set its state in the Windchill object identifier (OID) format: OR:Type:ID where, Type is the internal name of the Windchill entity type.
This action supports only a single identifier.
6. In the Select state field, select the state that is applicable for the specified OID, and then click Done.
Output Schema
The output schema for this action changes depending on the entity type you select.
See a sample output schema for the Set State action when you select a Part entity in the figure that follows: