Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

How to complete process with event listening inside

Avatar

Former Community Member

Hi all,

I have a workflow, a part of it contains a branch gate way:

Branch 1: Wait point (7 days)

Branch 2: Listening event

If after 7 days and no event is sent, the workflow auto emails user and closes

Oherwise it will route to another user.

I observe that if event is received, then at the end the process status can be COMPLETE. But if after 7 days and no event is received, after last user complete the form, the process status is still RUNNING.

I'm thinking about this approach: adding 1 sending event after wait point in branch 1, it send an event so that branch 2 can be completed.

Is there any other solution to complete this kind of process?

Thank you and regards,

Anh

1 Accepted Solution

Avatar

Correct answer by
Level 8

instead of using a gateway and an event recieve, catch the event on the wait operation (so that the event icon is on the corner of the wait operation's icon). That way, the event is listened for only during the time that the wait operation is executing.You draw a route off of the operation, and you draw a route off of the event catch. If the event catch occurs, its route is followed but not the other. Make sense?

http://help.adobe.com/en_US/livecycle/9.0/workbenchHelp/000113.html#1032048

scott

View solution in original post

7 Replies

Avatar

Level 8

Is the gateway configured to use OR-WAIT as the control type?

Avatar

Former Community Member

Hi Scott,

Thank you for your reply.

I use OR-Wait condition with the branch gate way.

And the branch with the event listenning is always RUNNING after the other branch completes.

Regards,

Anh

Avatar

Correct answer by
Level 8

instead of using a gateway and an event recieve, catch the event on the wait operation (so that the event icon is on the corner of the wait operation's icon). That way, the event is listened for only during the time that the wait operation is executing.You draw a route off of the operation, and you draw a route off of the event catch. If the event catch occurs, its route is followed but not the other. Make sense?

http://help.adobe.com/en_US/livecycle/9.0/workbenchHelp/000113.html#1032048

scott

Avatar

Former Community Member

Thank you for your reply, Scott.

Sorry for last week I could not access internet.

Your approach is very promising. I will try it and inform you the result.

Regards,

Anh

Avatar

Former Community Member

Hi Scott,

Your suggestion does work! The operation will be INTERRUPT when the event is received but at the end the process can be COMPLETE.

Thank you very much for your help.

Regards,

Anh

Avatar

Level 8

Good to hear you got it working!

scott