85
Views
5
Comments
auto close activity BPT
Discussion

I'd like to ask

I have a process when submissions are submitted to admin

but the admin doesn't respond for example 1 minute

then the status of the application will automatically be rejected

activity on "ignore review"

it was closed and successfully rejected automatically, then I want "admin" to also be closed automatically if the admin does not ignore for 1 minute and do an update on the activity "admin" close on is when the status is "review", and "admin" will be closed status

I'm also asking what function or action is performed in the "due date" column.

in each activity?

what is the solution

if there are suggestions and input I am very happy for it

*I am attaching some screenshots


Thank You




11.png
22.png
33.png
2021-09-06 15-09-53
Dorine Boudry
 
MVP

Hi Muhamad,

see this documentation, there is a section called 'joining with forced termination'

Dorine

2022-11-02 15-16-55
Muhamad Rijal Rifai

thanks for answering

but I'm still confused about the due date property being used at what time and can you give an example of the case?

2021-09-06 15-09-53
Dorine Boudry
 
MVP

Well,

You are talking about max 1 minute of wait for the admin to do his work. 

I think that is extremely short, but that would be a timeout on the wait of Addminutes(CurrDateTime(),1)


2022-11-02 15-16-55
Muhamad Rijal Rifai

thanks for answering


Just 1 minute for a trial run so I don't have to wait long for the results or actions of the "due date" if it's overdue

if the time limit specified for the admin has passed what will happen?

sorry I'm a little confused

2021-09-06 15-09-53
Dorine Boudry
 
MVP

see that documentation i pointed you to :

if you put both the wait and the human activity in a sub process, and you make both branches end with a terminate in that sub process, then if either of them is done, the whole sub process will terminate and your main process continues with whatever comes after that sub process.

So in your example, if the wait is done after 1 minute, it will terminate the whole sub process, so the human activity will also not have to be executed anymore.

On a different note, that logic you have now put into the OnClose of that Wait, I think that should just be an Automatic Activity in the flow right after the Wait.  And you probably want to start it with a GetForUpdate rather than an aggregate.

Dorine

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