237
Views
3
Comments
Solved
Business process technology due date event
Question

Hello,

The BPT master class and the use case applications are very helpful in understanding the basics of the concept. But is there any demonstration of a use case where we can capture an event whenever a Human activity is Due? What happens when the Due Date expires? Is there any event which we can capture? I am not able to find such a use case in the master class or documentation. Could any one guide me on this?

My use case is to send a notification email to the user (who is responsible to complete the Human activity) that your assigned activity has crossed its due date and user should attend it.

Thanks,

Vinay Rawat

2021-03-18 21-03-15
Benjith Sam
 
MVP
Solution

Hi Vinay,

Based on the mentioned objective, I did some use-case implementations and below listed are some of the observation points and the solution statement for the objective.

Observation:

Case: Human Activity Due Time exceeded

The respective Human Activity…

  • does not automatically goes to close state neither the onClose callback action is triggered automatically on exceed in Due Time
  •  status is still in - Ready Status

The respective Process…

  • still do have an Active Instance count because of the Human Activity in Ready state
  • is in Active Status

Solution Statement:

  • Parallel execution of Human Activity along with the Wait Process Activity defined in the Business Process flow is the solution
  • Set the Due Date and the Timeout Value of the respective Human Activity and the Wait Process Activity with the same DateTime value (In my case the DateTime value is a hard-coded value but you can use a local variable as per your need)
  • Note: Wait process activity allows you to put your process flow execution on hold until a specified timeout is reached
  • Define an OnClose call back definition for the Wait Process Activity which will get executed automatically on reaching the specified timeout and the Logic within the action flow will trigger the remainder Mail based on the check for the completion of the parallel executed Human Activity

Below shown are some of the simple business scenarios flow along with the Wait Process activity onClose action flow


Hope this helps you!

Please let me know if you need the sample .oml or any more information :)


Regards,

Benjith Sam

2024-07-05 14-16-55
Daniël Kuhlmann
 
MVP

Hi Vinay,

If I remember correctly, when the Due date exceeds the activity automatically goes to close state, and in the onCLose event of the human activity you can check if you really want to close it or not.

You could also make a workflow like this:

This is form the partner demos OrderManager (if you have access to it you can inspect the code).

Basically after the order is  placed there is a limited time by which it needs to be approve, else when the expiration time has passed the order is automatically rejected.

Maybe this inspires you to a solution.

Regards,

Daniel

2017-07-15 18-41-36
Sachin Mahawar

Hi Daniel,

I just verified the behavior of the human activity in case the due date is assigned to it, I think the due date is there just to inform the end-user, the activity doesn't get close automatically even the due date is reached until the reviewer doesn't take any action. 

Could timer be a solution to this, which can be scheduled to check all the human activity which is about to pass the due date and inform their approval via email?

Thanks,

Sachin

2021-03-18 21-03-15
Benjith Sam
 
MVP
Solution

Hi Vinay,

Based on the mentioned objective, I did some use-case implementations and below listed are some of the observation points and the solution statement for the objective.

Observation:

Case: Human Activity Due Time exceeded

The respective Human Activity…

  • does not automatically goes to close state neither the onClose callback action is triggered automatically on exceed in Due Time
  •  status is still in - Ready Status

The respective Process…

  • still do have an Active Instance count because of the Human Activity in Ready state
  • is in Active Status

Solution Statement:

  • Parallel execution of Human Activity along with the Wait Process Activity defined in the Business Process flow is the solution
  • Set the Due Date and the Timeout Value of the respective Human Activity and the Wait Process Activity with the same DateTime value (In my case the DateTime value is a hard-coded value but you can use a local variable as per your need)
  • Note: Wait process activity allows you to put your process flow execution on hold until a specified timeout is reached
  • Define an OnClose call back definition for the Wait Process Activity which will get executed automatically on reaching the specified timeout and the Logic within the action flow will trigger the remainder Mail based on the check for the completion of the parallel executed Human Activity

Below shown are some of the simple business scenarios flow along with the Wait Process activity onClose action flow


Hope this helps you!

Please let me know if you need the sample .oml or any more information :)


Regards,

Benjith Sam

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.