My process looks like this:
|Start|
|
|
|
|
|Do Some Stuff Here|---------------------------|Client Event 2|
|
|
|
|
|Client Event 1|
Client Event 1 is a webform assigned to the destination user. He can complete the form and the process finishes
Client Event 2 is a webform assigned to the originator. He can press a button and the process is cancelled.
I need to put a server event in after both client events, to expire the other activity.
So if the destination user completes Client Event 1 then Client Event 2 is expired, and vice-versa.
When I just enter:
public void Main(ServerEventContext K2)
{
K2.Syncronous = true;
K2.ExpireActivity("Name of the other activity");
}
The code executes and moves on with no errors. But the other activity doesn't get expired.
Can anyone tell me what I'm doing wrong? Many thanks,
Richard