Creating a new Package Type and Defining Package States

Before creating a new Application, a new Package Type and Package States must be defined in the Custom Types section.

This page includes the following:

Watch the video:

Note: Read the Working with Packages section for more information about Packages and Stateflows.

Package Overview

Graphic depicting Package Stateflow Model

To Create a New Package Type

  1. Navigate to Settings > Custom Types.
  2. Hover over the Package tab and click the add button displayed. The Create Custom Type dialog is shown.
  3. Select the Create from Existing radio button (for this scenario, the new type will be based on the Deployment Package Type)
  4. Name the new Custom Type Rolling.
  5. Enter the version number: 1.0
  6. Select the Package Type.
  7. Select the Deployment Custom Type.
  8. Select the version you want to base the new Custom Type on.
  9. Click Create.

To Create the Package States

  1. Open the Rolling Package Type.
  2. Display the Workflow section.
  3. Right-click the States section and go to Add child > State
  4. Add the following States:

    Image displaying package states

    State description

    • Active: initial Package state upon creation.
    • Deploy: transitional state. Used to trigger the "Trigger_Deployment" & "Deploy" Workflows.
    • Deployed: Package deployed into Target.
  5. Now define the ClosingState condition and transitions for each State:

    State isClosingState Transition Transition name toState
    Active true Deploy Deploy Deploy
    Deploy false Deployed Deployed Deployed
    Deployed false - - -

Next steps:

  1. Creating the Application with the Wizard
  2. Fine-Tuning the Environment
  3. Fine-Tuning the Components
  4. Creating and Fine-Tuning the Workflows
  5. Assigning Workflows to Package States