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' ?!

View Entire Topic
StephaneBailleu
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