It is possible to create an execution step that closes a package and marks the package as Failed. Each package workflow should resolve with a closed package.
This type of step is also required when integrating request and package workflows. If a package has been created using the request workflow step Create Package and Wait, the request workflow will not proceed until the package workflow has closed.
Deployment Management includes the execution workflow step source Close (Immediate failure) that performs this task. Use this step source unless it does not meet the required specifications, such as validation or processing type.
To create the execution step source, make a copy of the execution workflow step source Close (Immediate failure), and then change the field values as defined in Table 4-3. Execution window values for closing packages as failed.