Rule Result not returned back to Workflow container
We have a workflow where the approver for a Process is Manager of any Orgunit .
Now the manager is determined using a Rule with Category u201CFunction To be executedu201D .
The Business requirement is so that If the immediate manager for any Orgunit is not maintained it will traverse through the entire Org structure unless the Manager is determined. So the Level of the First approver could be of any value starting from 01.
We also have Deadline monitoring active .
Incase the first approver doesnu2019t act within 7 days the Work item should go to the next level Manager ( second approver ).
The level of the second approver depends on the level of the First approver .
Example : If the level of the First approver is 3 then the level of the second approver would be 4 or more.
: If the level of the First approver is 2 then the level of the second approver would be 3 or more.
Hence to achieve the Level dynamically we need to pass the Level of the first approver from the Rule to the Workflow so that it can be used for determining the next level manager in the next task.
In the Function Module which determines the first approver I have got the Value for the Level .
I also have assigned that value to the Rule Container (_WI_RESULT , this is the only parameter which can be used for the Export ) using the Macro SWC_SET_ELEMENT .
I also have done the binding from the Rule to the Workflow. But the value is not populated in the Workflow container .
Could any one please help me on solving this ?? Any other idea to achieve this is functionality is welcome too.