cancel
Showing results for 
Search instead for 
Did you mean: 

Terminating Events with Synchronous Method

Former Member
0 Kudos

Hi All,

I have terminating Events mentioned in synchronous method EDIT APPR_DOC Business object. Here the appraisal is successfully completed. But the work item is still in Inbox. I can find the terminating Event in SWEL but no receiver FM is there. In the Task the Event link is active.

Would somebody tell me how to solve this ?

Helpful answer would be really appreciable.

Thanks,

Bikash.

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi All,

The Event linkage for terminating Event is already done.

Here is the Missing Key value 0000 of Part id.

But in Event container i can find the value.

The Binding has been done properly from workflow to task container.

Please let me if you need any other information.

Regards,

Bikash.

Former Member
0 Kudos

Now if I understand this correctly, the problem is that the object key in your container and the object key of the event are different. They do not match. Your last two screenshots were really helpful.

How does this workflow get started at the first place? If the object key is incorrect in the task container, that should mean that it is incorrect already in the workflow container. And how does it get populated/instantiated there? I guess the APPR_DOC object gets populated from the start of the workflow (through an event?). Are you sure that there isn't anything wrong in this part?

One approach could be to check how the event gets created, and if there is something suspicious (where does it get the 4 last digits).

By the way, have you activated the outcome for the terminating event for the step in the workflow builder? It's in the outcomes tab in the step editor in the WF builder.

If your solution is standard or "nearly standard" (workflow gets started from standard application, the event gets triggered from standard application etc.), you could check possible OSS notes of this area.

Kind regards,

Karri

Former Member
0 Kudos

Hi Karri,

In workflow container i find the missing last 4 digit too. That's why i am unable to find out how the workflow get started then with missing digits then.

I have been already activated the outcomes and raised an OSS message for this.

Will update you as soon as i get any result.

Regards,

Bikash.

Former Member
0 Kudos

Hi All,

I think i found the exact problem. When the Event is triggered the value of key fields PlanVersion, APP ID and Partid is passed to Workflow container. But when i see the Workflow container i cannot find the Partid in ObjectID but l can see it when the tree is opened.

Please help me to solve it.

Regards,

Bikash.


former_member185167
Active Contributor
0 Kudos

Hello,

Tree? Maybe a screenshot would help.

Anyway, sounds like a problem with the binding.

regards

Rick

I042439
Employee
Employee
0 Kudos

We ask again:
Did you bind the APPR_DOC instance FROM the workflow TO the Task?

and

Did you bind the _EVT_OBJCECT FROM the EVENT to the TASK (to the SAME element above)?

I042439
Employee
Employee
0 Kudos

Hi Bikash

As mentioned by Rick and Karri - You need to have the same instance in your task (the instance for which the terminating event is triggered) AND you need to bind the _EVT_OBJECT from the terminating event to the TASK instance in the binding (Link the two instances to end the correct workitem).

Regards,

Modak

Former Member
0 Kudos

Which is/are the terminating event(s)? Are the events of APPR_DOC or something else? In any case you need an instance of the object of the terminating event in the task (see it in the workflow log container). Most probably you have an instance of APPR_DOC in the task container. If you don't have an instance, then you are most probably missing the binding from WF container to the task container. If you have an instance there, then check what is its object key. And as Rick said, then check the object key from SWEL, and see if it matches with the object key in task container.


Kind regards,

Karri

Former Member
0 Kudos

Hi Karri,

Apologies for late reply.

Yes the Terminating events are of APPR_DOC. I have same object ket in Event and Task Container.

When i create an Appraisal the Terminating event is triggered. When the Appraisal is processed from UWL again the Event is triggered with same Object key but receiver is found.

I have used the SWU0 Event simulation. Under terminated tree i can find my Task.

Would you please help me ?

Regards,

Bikash.

Former Member
0 Kudos

I have nothing to add for Rick's and Modak's answers (just repeating them). Most likely the object instance is not in the TASK container. => Task is waiting for the event, but it does not know for which object. If you were able to open the technical workflow log and the correct work item's container, we could confirm this quite educated guess that the instance is missing. IF this is the case, then you need to bind the object from workflow container to the task container as already said. This should be really straightforward task, if you have some basic workflow development skills.

Regards,

Karri

former_member185167
Active Contributor
0 Kudos

Hello,

Check in SWEL what key was used with that event. If it doesn't match the workitem then it won't be matched. Also make sure the event was created after the workitem was.

regards

Rick Bakker