Discussion

Spin-Off flow not executing properly

Hi All,

I am new to using the spin-off flow. As of my understanding spin-flow and current flow will execute parallelly. I just tried with simple spin-off. The activity I have in spin-off flow not executing properly and executing in asynchronously.

Let say I have current flow A and spin-off flow B

Flow -A

start

Assignment

flow action with two number as i/p text field

spin-off flow B

utility(Add Activity)

Assignment

flow action with two number , Added result, subtracted value(get it from spin-off flow)
flow-end

------------

spin-off flow(B)

flow-start

Utility(Subtract activity)

flow-end

-----------

AddActivity

add two nos set back AddResult
---------------
subtractActivity

sub two nos and set back to SubResult

---------------------

The last flow action in main flow showing result as

Number One : 11
Number Two : 22
Added Value : 33
Subtracted Value :-1

In the above screen subtraction utility in spin-off flow not executing.

In tracer its showig like main flow , stream begin and end(input screen) for assignment, flow suspend , spin-off start, utility(Sub) start and end , spin-off flow end , main flow resuming, utility(Add) start and end, stream begin and end(output screen) for assignment

so in tracer i came to know like main flow is waiting till spin-off finish its work. did any one of you faced this kind of situation. And one more thing is, Subtract utility in spin-off its executing but not returning correct value. It always giving -1 as sub result.

Kindly let me know if any one have idea about this.

Regards
Alagar.

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Comments

Keep up to date on this post and subscribe to comments

December 8, 2011 - 11:38am

Spin-off as I understand is not actually parallel execution in sense that both flow going side-by-side, rather asynchronous execution i.e. two flows executing independent of each other in either order.
One way 'Spin-Off' is different from adding a 'Flow' shape as child is - when spin-off flow is end it does not means the parent flow gets end; whereas adding a Flow shape is a form of branching.

quote:


Originally posted by MAYANALAGAR

Hi All,

I am new to using the spin-off flow. As of my understanding spin-flow and current flow will execute parallelly. I just tried with simple spin-off. The activity I have in spin-off flow not executing properly and executing in asynchronously.

Let say I have current flow A and spin-off flow B

Flow -A

start

Assignment

flow action with two number as i/p text field

spin-off flow B

utility(Add Activity)

Assignment

flow action with two number , Added result, subtracted value(get it from spin-off flow)
flow-end

------------

spin-off flow(B)

flow-start

Utility(Subtract activity)

flow-end

-----------

AddActivity

add two nos set back AddResult
---------------
subtractActivity

sub two nos and set back to SubResult

---------------------

The last flow action in main flow showing result as

Number One : 11
Number Two : 22
Added Value : 33
Subtracted Value :-1

In the above screen subtraction utility in spin-off flow not executing.

In tracer its showig like main flow , stream begin and end(input screen) for assignment, flow suspend , spin-off start, utility(Sub) start and end , spin-off flow end , main flow resuming, utility(Add) start and end, stream begin and end(output screen) for assignment

so in tracer i came to know like main flow is waiting till spin-off finish its work. did any one of you faced this kind of situation. And one more thing is, Subtract utility in spin-off its executing but not returning correct value. It always giving -1 as sub result.

Kindly let me know if any one have idea about this.

Regards
Alagar.


July 7, 2016 - 6:19am

Please explain the scenario for spin off , in real time where will we used  ?

July 19, 2016 - 6:49am

Hi,

 

Spin off Flow-A spinoff occurs when one flow execution starts another flow execution that executes asynchronously and independently from the first flow execution. The first flow does not pause or wait for results from the second flow. The second flow may operate on the same work item, or a different work item, from the first flow.

Example:

An Organization wants to process a Onboarding:

Major process involved:

1).Initiation of ID Card

2).Initiation of Security access and etc..

 

Like this there were branches which can execute in parallel.Spin off can be effectively used.

 

Thanks,

Karthik