Question
Blue Rose Technology
GB
Last activity: 26 Aug 2020 8:17 EDT
how can I create a work case through Activity
Hi,
My requirement is to create a work case click of button on a button in new tab, if certain conditions are satisfied, otherwise it should show error on same harness.@
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Pegasystems
US
Here is how it works without using an activity:
1) Create a When rule that checks for errors and set it on the disable state of the button
2) Add 2 actions on the button to 1) Create Work (ex: a sub-case) and 2) Open a harness
3) The current work gets opened in the new window and the new work "sub case" gets opened in the current window
Pegasystems
US
You may not need to write an activity if you define a When rule that returns true if the “Create Work” button is enabled and then define an action on the button to create work.
Would that work?
Blue Rose Technology
GB
Hi Marc,
Thanks for your reply.
The requirement is to display the error message on the screen, when certain condition is getting false.
also button should be visiable all the time.if conditions get true then in the new tab, work object need to be created.
Pegasystems Inc.
IN
Hi
From the button can you try calling an activity which will first evaluate the condition whether someone can create workitem or not and if true then allow execution of next step which will create the work item else show an error message.
In order to create a work item you can use the out of the box activity "AddWork"
Blue Rose Technology
GB
Hi,
I have tried it but work object is getting created, i can see it on clipboard and tracer.
but it is not getting displayed on the new tab in UI.
Blue Rose Technology
GB
Pegasystems Inc.
IN
So you mean that workobject is getting created despite having a when condition which should ideally restrict the user from doing so ? Or is it that your original requirement is addressed and now it is behaving as expected but you are having a new issue where the newly created it is not opening up on new tab ?
Accepted Solution
Pegasystems
US
Here is how it works without using an activity:
1) Create a When rule that checks for errors and set it on the disable state of the button
2) Add 2 actions on the button to 1) Create Work (ex: a sub-case) and 2) Open a harness
3) The current work gets opened in the new window and the new work "sub case" gets opened in the current window