Monday, October 6, 2014

Maximo 7.5 my First Workflow

Use Workflow in Maximo to assign the flow of a request to different roles (groups of persons) 

I have a record in a cloned application that has to go through some different statuses. For example, it has to be "Approved", set to "In Progress", then "Closed".

I want to assign these changes to person(groups) so they get a message in the inbox on their startcenter. 

For more information about workflow I used this "Workflow Implementation Guide":

and this link is also usefull:


Step 1 - Create a simple overview

In this example I just want to put a new record in the workflow, let someone determine if the record should be approved or cancelled.

Step 2 - Create Actions
In this example the record either gets approved or cancelled. I need actions to perform those status changes in out application.

First go to the Action application and add the actions. Go-To -> System Configuration -> Platform Configuration -> Actions 

I create two actions: 

Note 1: 
I use a cloned application, it is a clone of the SR application, that is why i use the SR object.

Note 2:
The APPR and CAN statuses are not default in the SR object. I added those to the SRSTATUS domain. 

Step 3 - Create Roles and Persongroups

When creating Tasks in a workflow, these task will need to be assigned to a role. These roles will be Person Groups in this example. So we first need to create "Person Groups" and then add those Person Groups to the Roles.

Add the Persongroup:

Do not forget to add at least one actual person to the Person Group, otherwise the following error will occuur when testing the workflow:

BMXAA4473E - No assignments created for task <TASKNAME> in workflow process <WFPROCESSNAME>

Add the Role:

Step 4 - Create the workflow

From the Implementation Guide I got this table with the different nodes available in a workflow.

Type of Node
Lines permitted
entering a node
Lines permitted or
required exiting a
Start node

Indicates the point when a record starts a workflow process. When you create a process, a single start node displays on the canvas. Each process can have only one start node. You cannot delete start nodes.
One positive line is required
Condition node

Indicates an evaluation of the record, based on data in the record. Use a condition node to enable a true evaluation or a false evaluation of the record, and then direct the record based on that evaluation. When a condition node is generated, it evaluates the record based on the Structured Query Language (SQL) statement defined in the properties for the node. The record is then routed to either the positive connection line or to the negative connection line exiting the node. You can use the SQL Expression Builder tool, accessed from the Workflow Configuration > Escalations application, to create an SQL statement.
One or more positive
lines; one or more
negative lines.
One positive line and
one negative line are required.
Interaction node

Provides an option for a user interaction with a record. Use interaction nodes to guide a user through a structured interaction with a record. A process can have one or more interaction nodes. You do not have to include interaction nodes in a process. A manual input node precedes an interaction node. If an interaction node leads to an application not related to the object on the process record, place a stop node after the interaction node. The original process shuts down as the new record displays.
One or more positive
lines; one or more
negative lines.
One positive line is
Manual input node

Indicates a need for user input because there are multiple directions that a record can take in a process. Use a manual input node to have the assignee decide what happens next. When a manual input node is generated, a window displays. The manual input window contains a menu of options for routing the record. When the assignee selects an option, any actions or notifications associated with the option are triggered.
One or more positive
lines; one or more
negative lines.
More than one
positive line is
required. Negative
connections exiting
the node are not
Subprocess node

Indicates that a separate workflow process is contained within another workflow process. Use a subprocess node to break down a complicated business process into smaller, self-contained units. For example, you could have a subprocess that handles records in different sites, or that handles different classes of work orders. When the record encounters a stop node within a subprocess, the stop node is returned to the main process. The stop node is returned at the same point where it left the process and on the same type of routing line on which it finished.
One or more positive
lines; one or more
negative lines.
One positive line and
one negative line are required.
Task node

Indicates when a user is to be given an Inbox assignment. The user has two choices. For example, the user can either approve a record or reject a record. Use task nodes when your business process requires that a user evaluate a record. Create a task assignment that routes the record to one or more individuals. Workflow comes to a stop at a task node until the assigned user has routed the record.
One or more positive
lines; one or more
negative lines.
One positive line is
required; one
negative line is
Wait node

Indicates that the progress of a record through a process pauses until a required condition is met. Use a wait node to create a reaction to a database event, such as a status change, or a record update. A process can have one or more wait nodes. You do not need to include wait nodes in a process. A wait node cannot precede a node that requires user interaction, such as an interaction node or a manual input node.
One or more positive
lines; one or more
negative lines.
One positive line is
Stop node

Marks the end of a workflow process. That is, the point where a record leaves control of the process. When you create a process, a single stop node is placed on the canvas. Use the stop node tool in the palette to place additional stop nodes on the canvas.
One or more positive
lines; one or more
negative lines.

For this example I want the user to get an Inbox assignment. From this assignment he needs to evaluate the record and either approve it or cancel it.

Looking in the table I want to use a 'Task node'

First I open the 'Workflow Designer' (Go-To -> System Configuration -> Platform Configuration -> Workflow Designer)

Then I create a new Workflow Process, give it a name, description, and since I am using it on a Clones application of SR, use SR as the object:

Save the Process.

Next I drag a Task Node onto the canvas.

Then I grap the "Connect Nodes" pencil and drag a line between the Start node and the Task node, and a line between the Task node and the Stop node.

Then I drag a "Negative" line from the Task Node to the Stop Node.

The connections I created are 'Actions' in Workflow. To modify a Action, I simply double click on the positive (black) arrow between the Task node and the Stop node.

The "Action" properties pop-up and I fill it in like so:

Then I double click the negative (red) arrow and fill it in:

I save the Process

Next I want to configure what group of users is assigned to this task.
I double click on the Task node and fill it in like shown below:

Mind the Application fields! I use a clone of SR, so I need to make sure it is changed here.

Next I do the following steps fro mthe 'Select Action' menu: 

  • Validate Process
  • Enable Process
  • Activate Process

I save the record.

Step 5 - Test the workflow

I create a new record in my cloned application, save it and click the "Route Workflow" button:

Now I log out, and log back in as the PIAPPR user, that is linked to the PIAPPR person referenced in the PIAPPR person group.

This user has an Inbox configured, and I configured some fields in this Inbox:

There are two options to click on in this Inbox, Either click on the description, the record will open. You can view it, and if you want you can click the "Route Workflow" icon from there to open the "Workflow Assignment" dialog

Or click on the "Route Workflow" icon, to open the record and directly open the "Workflow Assignment" dialog.

In the "Workflow Assignemnt" dialog I can choose from the actions I configured in the Workflow:

After choosing one of the options, the workflow ends and the status is changed:

So there it is, a very basic Workflow. 


No comments:

Post a Comment