This example explains how to define an action that closes a child
item when its parent is completed.
Prerequisites:
The following must be set up before you perform this procedure:
- Single Relational field called
Child
- Application workflow named
Parent Workflow:
- In Progress state
- Assign transtion that leads from the
New state to the
In Progress state
- Closed state
- Close transtion that leads from the
In Progress state to the
Closed state
- Application workflow named
Child Workflow with the same steps and
transitions as the
Parent Workflow
To set up a parent-driven
action:
-
Create an action that will close the child item when the value of
the
Active/Inactive field in the parent item is
Inactive.
-
In the
Parent workflow, right-click the
Close transition, and select
Show Actions.
-
On the
Actions tab of the transition Property
Editor, click
New.
-
In the
Action Wizard that opens, select
Transition, and then click
Next.
-
Select
Referenced items in relational field.
-
Click the
specified link and then select
Child.
-
Select
Field value.
-
Click the
specified link and select
Active/Inactive.
-
Make sure the next link reads
is.
-
Click the
Active link, select
Inactive, and then click
Next.
-
Select
Child:Close (In Progress->Close), and
then click
Finish.
-
Deploy the process app.
-
Test the process app.
-
In the
SBM User Workspace, submit an
item into the
Parent Workflow.
-
Click
Assign.
-
Submit an item into the
Child Workflow.
-
Click
Assign.
-
In the
Parent Workflow, select the child item in
the
Child field, and then click
Close.
In the
Child field in the
Standard Fields section, the child item
has
(Inactive) after its name. This means the
item was closed.
Copyright © 2007–2016 Serena Software, Inc. All rights reserved.