Skip to main content

Workflows & Lifecycles

Cascadia PLM uses a dual state management system to control how items progress through their lifecycle and how changes are approved.

Two Types of Definitions

Cascadia supports two distinct types of state machine definitions:

TypePurposeFeaturesUsed By
LifecyclePassive state machinesGuards only, no approvalsParts, Documents, Requirements
WorkflowActive approval processesGuards, actions, approvals, lifecycle effectsChange Orders

Lifecycles

Lifecycles define the states an item can be in and the allowed transitions between states. They are passive - transitions only occur when explicitly triggered by a user or system action.

Example: Part Lifecycle

Preliminary → Under Review → Released → Superseded
↘ Obsolete

Key characteristics:

  • Define valid states for item types
  • Control which transitions are allowed
  • Support guards (conditions that must be met)
  • No built-in approval voting
  • Transitions triggered manually or by workflow effects

Workflows

Workflows are active approval processes used by Change Orders. They include all lifecycle features plus:

  • Approval requirements (voting)
  • Transition actions (send notifications, update fields, etc.)
  • Lifecycle effects (coordinate changes to affected items)

Example: ECO Workflow

Draft → Impact Review → Technical Review → Approved → Released

Workflows List Overview

The Workflows page displays all workflow definitions with summary statistics.

Summary Information

Each workflow card displays:

  • Workflow name and description
  • Number of states and transitions
  • Item types using this workflow
  • Active/inactive status

Filtering

  • Search: Find workflows by name
  • Type Filter: Show workflows, lifecycles, or both

Lifecycles List Overview

The Lifecycles page displays all lifecycle definitions.

Summary Information

Each lifecycle card displays:

  • Lifecycle name and description
  • Number of states and transitions
  • Item types using this lifecycle

States

Each state in a lifecycle or workflow has:

PropertyDescription
NameDisplay name (e.g., "Under Review")
ColorVisual indicator in the UI
DescriptionOptional explanation of the state
InitialWhether items start in this state
FinalWhether this is an end state

State Types

  • Initial States: Where new items begin (e.g., "Preliminary", "Draft")
  • Intermediate States: Work-in-progress states (e.g., "Under Review", "Approved")
  • Final States: End states that typically lock the item (e.g., "Released", "Obsolete", "Cancelled")

State Colors

States use colors for quick visual identification:

ColorCommon Usage
GrayDraft, initial states
BlueIn progress, under review
YellowPending approval
GreenReleased, approved
RedRejected, cancelled
PurpleObsolete, superseded

Transitions

Transitions define the allowed paths between states. Each transition has:

PropertyDescription
NameDisplay name for the transition action
From StateSource state
To StateDestination state
DescriptionOptional explanation
GuardsConditions that must pass before transitioning
Allowed RolesUsers who can execute this transition
ActionsOperations to perform (workflows only)
Approval RequirementVoting requirements (workflows only)
Lifecycle EffectsItem state coordination (workflows only)

Guards

Guards are conditions that must be satisfied before a transition can occur. Guard types include:

Field Value Guards

Check that a field meets a condition:

  • equals / not_equals
  • contains
  • is_empty / is_not_empty
  • greater_than / less_than / greater_or_equal / less_or_equal

Example: Require description before release

Field: description
Operator: is_not_empty
Error: "Description is required before release"

User Role Guards

Verify the user has required roles:

Required Roles: [Engineer, Quality]
Require All: false (any matching role is sufficient)

Approval Count Guards

Check that sufficient approvals have been received:

Required Count: 2
Required Roles: [Manager, Lead Engineer]

Actions (Workflows Only)

Actions execute during transitions. Supported action types:

Action TypeDescription
send_notificationEmail users about the transition
update_fieldModify a field value on the item
create_taskCreate a follow-up task
push_lifecycle_changesUpdate affected item states (legacy)
execute_scriptRun custom logic

Actions can be configured to run before or after the transition completes.

Approval Requirements (Workflows Only)

For workflows requiring approval:

SettingDescription
Required CountNumber of approvals needed
Required RolesWhich roles can approve (optional)
Require AllWhether all specified roles must approve

Users vote "Approve" or "Reject" with optional comments. The transition only proceeds when the approval count is met.

Using the Workflow Builder

Workflow Builder The visual workflow builder: designing states and transitions for ECO approval workflows.

Access the workflow builder from Workflows in the sidebar.

Creating a New Definition

  1. Click + New Workflow or + New Lifecycle
  2. Enter a name and description
  3. Select applicable item types
  4. Use the visual editor to add states and transitions

Visual Editor

The workflow builder uses a drag-and-drop interface:

Canvas Controls

  • Zoom: Use the +/- buttons or mouse wheel
  • Pan: Click and drag on empty canvas area
  • Fit View: Click the fit button to center the diagram

Working with States

  • Add State: Click the "Add State" button
  • Move State: Drag a state to reposition it
  • Edit State: Click a state to select it, then edit in the side panel
  • Delete State: Select and click the delete button

Working with Transitions

  • Add Transition: Click "Add Transition" and select from/to states
  • Edit Transition: Click the transition line to select it
  • Delete Transition: Select and click the delete button

Configuring States

Select a state to open the properties panel:

  1. Name: Display name for the state
  2. Color: Visual indicator color
  3. Description: Optional explanation
  4. Initial: Check if items start in this state
  5. Final: Check if this is an end state

Configuring Transitions

Select a transition to open the properties panel:

  1. Basic Info: Name and description
  2. Guards: Add conditions for the transition
  3. Actions: Configure operations to perform (workflows only)
  4. Approval: Set voting requirements (workflows only)
  5. Lifecycle Effects: Configure affected item coordination (workflows only)

Adding Guards

  1. Select the transition
  2. Click "Add Guard" in the Guards section
  3. Choose the guard type:
    • Field Value: Check a field condition
    • User Role: Require specific roles
    • Approval Count: Require votes
  4. Configure the guard parameters
  5. Add an error message to display when the guard fails

Adding Lifecycle Effects

For workflow transitions that should update affected items:

  1. Select the transition
  2. Click "Add Effect" in the Lifecycle Effects section
  3. Configure:
    • Change Action: Which affected item action (Release, Revise, etc.)
    • Target Lifecycle: The lifecycle to use
    • From State: Required current state of affected items
    • To State: Target state for affected items
    • Validate Guards: Whether to pre-check affected item guards

Default Definitions

Cascadia includes default workflow and lifecycle definitions:

ECO Default Workflow

The default workflow for Change Orders:

Draft → Impact Review → Technical Review → Approved → Released → Closed

Includes lifecycle effects to transition affected items through their lifecycles.

Part Default Lifecycle

The default lifecycle for Parts:

Preliminary → Under Review → Released
↘ Obsolete

Document Default Lifecycle

The default lifecycle for Documents:

Draft → In Review → Approved → Released
↘ Obsolete

Assigning Definitions to Item Types

Lifecycles and workflows are linked to item types through configuration:

  1. Create the lifecycle/workflow definition
  2. In the definition settings, select applicable item types
  3. Save changes

Items of that type will then use the assigned definition.

Viewing Item State

On any item's detail page:

  • Current state is shown as a colored badge in the header
  • Available transitions appear as action buttons
  • Workflow history shows the audit trail of state changes

Best Practices

Designing Lifecycles

  1. Start simple: Begin with basic states and add complexity as needed
  2. Use descriptive names: "Submit for Review" is clearer than "Transition 1"
  3. Add guards thoughtfully: Prevent invalid transitions rather than cleaning up after
  4. Document states: Use descriptions to explain what each state means
  5. Test before activating: Validate the workflow logic before going live

Managing Transitions

  1. Require complete data: Use field guards to ensure items are complete
  2. Use role guards: Control who can perform critical transitions
  3. Add helpful error messages: Guide users on how to fix guard failures

Lifecycle Effects Best Practices

  1. Map all change actions: Ensure each change action has appropriate effects
  2. Enable guard validation: Catch issues early in the ECO process
  3. Consider the full path: Ensure affected items can reach their target states

Troubleshooting

Transition Not Available

If a transition button doesn't appear:

  1. Verify you have the required role
  2. Check if guards are blocking the transition
  3. Ensure the item is in the correct "from" state

Guard Failure

If a transition is blocked:

  1. Read the error message to understand what's missing
  2. Update the item to satisfy the guard condition
  3. Retry the transition

Lifecycle Effect Failure

If affected items don't update:

  1. Verify the lifecycle effect is configured for this transition
  2. Check that affected items are in the expected "from" state
  3. Ensure the affected item's lifecycle includes the required transition

See Also