If else statement in processes

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
mrduy
Posts: 13
Joined: Thu Feb 20, 2014 1:58 am

If else statement in processes

Post by mrduy »

Hi all

I want to make a process with an attribute called Step. Step has 3 static choices: pending, in progress, and closed. Now I want to make a button on the table so that every time I click on it (e.g. the button), it will change to next choice accordingly.

EXP: pending --> click button --> in progress; in progress --> click button --> closed, etc.

How can I modify the process for button?

Thanks in advance for your help.
customaware
Posts: 2405
Joined: Mon Jul 02, 2012 12:24 am
Location: Ulaanbaatar, Mongolia

Post by customaware »

In the Textual Rules for the Process enter....

If MyProcess.Step='pending' Then
MyProcess.Step='in progress' ELSE
If MyProcess.Step='in progress' Then
MyProcess.Step='closed'

Where MyProcess is the name of the BO for which Step is an attribute.

Click the button to call this process.
Cheers,
Mark
_________________
AwareIM 6.0, 8.7, 8.8, 9.0 , MariaDB, Windows 10, Ubuntu Linux. Theme: Default, Browser: Arc
Upcloud, Obsidian....
Image
mrduy
Posts: 13
Joined: Thu Feb 20, 2014 1:58 am

Post by mrduy »

Thank you very much, it worked.
mrduy
Posts: 13
Joined: Thu Feb 20, 2014 1:58 am

Post by mrduy »

Is it possible if I replace the attribute Step with an reference attribute ?

Exp: Creating another business object Step and then create as many steps as we want.
Post Reply