This tutorial demonstrates how to add a custom transition button
to a state form in a location that is different from the standard transition
button bar. It also demonstrates how to use a variable for the button label, so
if the transition name changes in the workflow, the button label is
automatically updated.
Prerequisites:
Before you start this tutorial, create a new process app from the
Application Process App template in the
Create New Process App Dialog Box,
and add the following states and transitions to the application workflow:
- In Dispatch ("active" state)
- In Progress ("active" state)
- Waiting for User ("active" state)
- Resolved ("active" state)
- Closed ("completed" state)
- Dispatch ("regular" transition from
New state to
In Dispatch state)
- Assign ("regular" transition from
In Dispatch state to
In Progress state)
- Request Info ("regular" transition from
In Progress state to
Waiting for User state)
- Provide Info ("regular" transition from
Waiting for User state to
In Progress state)
- Resolve ("regular" transition from
In Progress state to
Resolved state)
- Close ("regular" transition from
Resolved state to
Closed state)
To add a custom transition button:
-
Click the
In Progress state in the workflow editor.
-
Click the
Form tab on the state Property Editor.
-
Click
New in the State form area. In the
Form Configuration dialog box, select
Based on 'quick form' for: In Progress Regular
State.
-
In the form editor, perform the following steps:
-
Select the top section of the form, right-click, and then
select
Add Row Above.
-
Drag a
Button control from the
Form Palette onto the new row.
-
Click the
Align right icon in the
Alignment section on the
Design tab of the Ribbon.
-
On the
Behavior tab of the form Property Editor,
perform the following steps:
-
Select
Perform a transition.
-
Click
Add.
-
In the
Add Transition dialog box, make sure the
In Progress state is selected, select the
Request Info transition, and then click
OK.
-
Select the
Show transition name check box. The
transition name will be displayed as the button label. If the name of the
transition changes in the workflow, the button label will change automatically.
-
On the
Toolbar tab of the form Property Editor, make
sure the
Remove transition buttons matching custom transition
controls check box is selected.
This option removes the
Request Info transition button from the button
bar.
-
To see the changes you made, click
Preview in the Ribbon.
On the custom state form, the custom
Request Info transition button is at the top right
of the form, and the standard transition buttons
(Resolve,
Update, and
Delete) are in the button bar at the top of the
form.
Copyright © 2007–2019 Micro Focus or one of its affiliates. All rights reserved.