cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Flexible Workflow Extension

workgit
Explorer
0 Kudos

Hi,

I find an action(go to Step) in WF Definition class that returns actions on Exceptions.

I need to specify an Step, when a user rejects a task, it goes backward in Approval Process and in Some Case if it Rejects, It goes to the first Person.

CL_SWF_FLEX_ENGINE - > if_swf_flex_engine_handle~execute.

in line 965, you find 'Go to Step' Action.

WHEN if_swf_flex_ifs_run_appl_step=>c_action_goto_stage.ls_outcome_action-action_ref_id = if_swf_flex_component=>c_action_goto_stage.

and in line 1027, we find the Function for Processing.

WHEN if_swf_flex_component=>c_action_goto_stage.IF ls_outcome_action-action_param IS INITIAL.RAISE EXCEPTION TYPE cx_swf_flex_run_exceptionEXPORTINGtextid = cx_swf_flex_run_exception=>goto_stage_undefinedm_id = CONV string( lo_component->get_nodeid( ) ).ENDIF.remove_all_future_components( io_current_activity = lo_component iv_only_current_stage = abap_true ).cancel_other_workitems( ).mo_engine->set_next_stage( CONV #( ls_outcome_action-action_param ) ).

How I can configure this to get the specific Step and where to pass 'action_param' ?!

Accepted Solutions (1)

Accepted Solutions (1)

sbl
Active Contributor

Mostafa,

I fully agree that the technology delivered by SAP on flexible workflow is great, but its implementation is currently full of restriction.

For me there are some major draw back with flexible workflow as they are currently delivered by the application, like the approval view won"t work if you create your own template (on MM) because the workflow template is are coded in the application. And as SAP consultant we have always been told not to modify the template delivered by SAP.

So how do you do if you want to add some rules in your workflow ? Well the answer from SAP is that they have delivered a badi for this, yes but then your key user is not choosing a rule with a name but BADI .... so this is not good for me.

A simple table (already existing) with a link for the workflow template and the object shall be read by the application;

So I agree with you there are some missing functionalities currently on flexible worflow.

Best regards

Stephane

workgit
Explorer
0 Kudos

Stephane,

I copied the standard Workflow and activate it in SPRO and I could add one more activity and two more rule and a Deadline reference.

The rule is working, But the newly added activity doesn't work on inbox with any decisions.

I wanted to add BRF application also, But it didn't work also.

I couldn't find a good Development documentation on Flex WF and I think this is a major drawback for Flex WF developers to Back to WF Classic.

Regards

Answers (3)

Answers (3)

SBach
Advisor
Advisor

Hi Mostafa,

yes there are restrictions and my lattest infos on rework activities from April (!) something planned for 2020 (thanks Stephane for the link). As Stephane I would not recommend to modify the coding to get to a solution.

Recommendation from Product is in most cases to use CP Workflow Mangagement for Extensions: https://blogs.sap.com/wp-content/uploads/2020/03/Migration-Options.png. Actual they are also working on content there to support adoption.

Best regards

Sebastian

workgit
Explorer
0 Kudos

Thanks for your consideration.

I created my own Runtime Class for Flex to handle the go to Step.

Regards

sbl
Active Contributor

Hi

I am not sure the functionnality is available (it depends of your product version on my latest release 1909 it was still not available)

You shall check this blog article

Cheers

Stephane

workgit
Explorer
0 Kudos

Dear Stéphane,

Hi, I work on S4/Hana 1909 FPS02,

and I think you are right and this functionality is not available right now.

But I am trying with some Modification, add this action. Because now this is a serious limitation on Flex WF and new SAP BPM(Cloud) and SAP Cloud Workflow Bulider, handle it in a better way

Thanks for your attention.