Posted: 26 Dec 2018 15:16 EST Last activity: 11 Jan 2019 14:19 EST
Flow without attached to a Case does not get Called in Mashup
Hi All - Can anyone help on the below
Requirement - Need to execute a flow not attached to a Case.
Scenario 1) :
I have a parent case : Org-AppName-Work-A-B for which case is created and a process attached to it . In the Mashup code this process is getting called which is expected behaviour
Scenario 2) :
Extended this parent class to have a child class , Org-AppName-Work-A-B-C for which there is No case in Case Management but have created a regular flow under this class In the Mashup code this flow is not getting called but calls the pyStartCase flow of the parent eventhough the names of both the flows do not match which is NOT expected behaviour . Need to create a temporary WO with no case ids generated . Have selected the create Temp Object also have selected Skip Create Harness
Tried the below 2 options in Mashup but still does not work
If you look at the Usage notes for NewFromFlow, you can see the purpose of that activity is "Create basis of a new work item and display form to collect more information." If you aren't looking to create a new work object, it looks like that is the wrong thing to be calling from your activity. If all you are looking to do is run your flow on a given object, I think you can get away with using the Flow-New method and calling your flow directly that way. Of course, if the flow has assignment shapes, it will need to be run on an object that can be persisted to the database, but for everything else, I think it should work.