You are viewing limited content. For full access, please sign in.

Question

Question

Interrupt the attached activity not functioning

asked on May 16, 2016 Show version history

My process utilizes Interrupt the attached activity multiple times. In the attached image, all Attached timer event under Initial Entries function correct (#2 thru #4).  Actually, all items I've numbered 1 thru 5 function. Gateways function at the Director Review section and each Director receives his form.

The issue is at #7. The timer fires on #7 (DOM). As you can see the "Interrupt the attached activity" is checked. After 2 minutes (testing timeframe) the DOM Reminder is sent. The previous DOM task displays as Interrupted in the Process Instance. I click the link received from the #8 (DOM Reminder), all good. No errors are given, the process does not fail but the forms do not merge at #9 (Logistics Merge 2) and I do not receive notification at YYT Logistics Review

To recap, #1 thru #5 function as designed, with or without timers. The forms merge and at the first set of gateways. #6 is OK (DOM, DSQ and/or DOF). #7 timers triggers but the attached activity is not interrupted. This process runs smooth when I eliminate the attached timers at the Director Review

Am I doing something wrong? Why would the first set of timer events function and merge but not the second set (Director Review)? 

 

CFN-Interrupt-Activity.jpg
0 0

Replies

replied on May 16, 2016

You said "The previous DOM task displays as Interrupted in the Process Instance", so the timer actually interrupt the attached user task "DOM" right? The issue is that the parallel merge gateway "Logistics Merge2" does not work as expected right?

It's because there are 6 inflows for the "Logistics Merge2" parallel gateway, so it will wait for 6 inflows then it will process to next step.  You can change the "Director Merge 2" and "Logistics Merge2" to inclusive gateway as "Director Merge": so the "Logistics Merge2" will be completed when the inflows actually reach to it equals the outflows of "Director Merge2".

0 0
replied on May 17, 2016 Show version history
  1. You said "The previous DOM task displays as Interrupted in the Process Instance", so the timer actually interrupt the attached user task "DOM" right?

    Yes
     
  2. The issue is that the parallel merge gateway "Logistics Merge 2" does not work as expected right?

    Correct. After an approval or timer triggered at DOM, DOF or DSQ User Task, the process ends without error, nor does it proceed to "Logistics Merge 2". 

    If I delete the attached timer events from DOM, DOF and DSQ then the process progresses to "Logistics Merge 2" and "YYT Logistics Review"
     
  3. It's because there are 6 inflows for the "Logistics Merge 2" parallel gateway, so it will wait for 6 inflows then it will process to next step. 

    But isn't that the purpose of the Attached Timer Event with Interrupt the attached activity enabled? No matter what occurs, with Interrupt the attached activity enabled on the 3 timers, there is in reality only 3 inflows to "Logistics Merge 2"?

    Also, there are 6 inflows to the Director Merge gateway after the "Initial Entries" stage. 
     
  4. You can change the "Director Merge 2" and "Logistics Merge 2" to inclusive gateway as "Director Merge": so the "Logistics Merge 2" will be completed when the inflows actually reach to it equals the outflows of "Director Merge 2".

    I'm confused. Are you saying that between 2 gateways, the outflow and inflow must be equal?

 

Either way, I made the changes you suggested and I still do not progress to "Logistics Merge 2" and now the process shows as "Terminated" without an error log.

 

The Forms Event Viewer states:

EventData>

  <Data>An unexpected error has occurred. [LFF502-UnexpectedError] Details: URL: Error: UnexpectedError Date: 5/17/2016 10:56:25 AM (Newfoundland Standard Time) HTTP Status Code: 500 Stack Trace: Caught exception: Laserfiche.Forms.CommonUtils.Exceptions.LFFormsException Message: An unexpected error has occurred. [LFF502-UnexpectedError] Inner exception: System.Collections.Generic.KeyNotFoundException Message: The given key was not present in the dictionary. at Laserfiche.Forms.Routing.Gateway.AddNewConvergingProcessInstance(Int32 instanceId, SequenceFlow seqFlow, IRoutingContext routingContext) at Laserfiche.Forms.Routing.FlowObject.GetAllSubsequentSteps(Int32 instanceId, IRoutingContext routingContext) at Laserfiche.Forms.Routing.InclusiveGateway.TryMerge(cf_bp_worker_instances processInstance, IRoutingContext routingContext) at Laserfiche.Forms.Routing.FlowObject.UpdateInclusiveMergeSteps(cf_bp_worker_instances instanceInMergeContext, IEnumerable`1 inclMergeSteps, IRoutingContext routingContext) at Laserfiche.Forms.Routing.RoutingContext.GetAllSubsequentRoutingSteps() at Laserfiche.Forms.Routing.RoutingDispatcher.GetSubsequentRoutingStepList() at Laserfiche.Forms.Routing.RoutingDispatcher.ExecuteSteps() at Laserfiche.Forms.Routing.RoutingEngineService.RunRouting(RoutingRequestParameters requestParam) at Laserfiche.Forms.Routing.RoutingEngineService.<>c__DisplayClass1.<StartRouting_Async>b__0()</Data>

  </EventData>

 

 

 

CFN-Interrupt-Activity 2.jpg
0 0
replied on May 17, 2016

For parallel gateway, parallel split and parallel merge need to be used as pair. And the number of parallel split outflows and number of parallel merge inflows need to match.  The parallel merge gateway will wait all the inflows connect to it to has input, then it will go to next step; For inclusive gateway, inclusive split and inclusive merge need to be used as a pair. And the outflows actual taken from inclusive split and inflows actual reach inclusive merge gateways need to match.

 

At which step did you get the error? At "Logistics Merge2"?

 I created a similar process and the process can go to End event after the inclusive merge:

 

Please open an support case with exported XML for the process if you still can reproduce this and we need to know which paths are taken when get this error.

 

0 0
replied on May 19, 2016

Yes, the error seems to have occurred at Logistics Merge

You stated: "I created a similar process and the process can go to End event after the inclusive merge:"

  • Why would you go to an End Event after a merge? Place a user task after the Inclusive Gateway and let me know what happens.
0 0
replied on May 19, 2016

I add a user task after the Inclusive merge gateway, it can goes to the user task as well.  See instance history below:

 It should not matter what's object type for the step after inclusive gateway.  Can you try remove all the inflows and outflows of the Logistics Merge gateway and re-add them?

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.