Task value in Rule FM

Mike Pokraka asap at workflowconnections.com
Wed May 23 12:12:00 EDT 2007


Hi Keith,

Binding from Task->WF only happens _after_ execution of the task. Also,
the agent determination happens before or in parallel to the task creation
so you do not have access to the task.

I usually just hardcode the task into the binding. In other words, bind
TS90000012 to RULE_WI. It's not like you could change the task without
changing the binding anyway so there's no problem.

Cheers,
Mike

On Wed, May 23, 2007 3:25 pm, Gardiner, Keith (CIS) wrote:
> Hi,
>
> We are on Basis 620 system R3 4.72.
>
> This seems fairly basic to me but I can't get it to work (:.
>
> I am trying to get the value of the current work item task (TS91nnnnnn)
> into a function module for Agent Evaluation for the dialog step the task
> is attached to.
>
> I have created a Workflow Container element defined as BOR Object Type -
> WORKINGWI - Import / Export.
>
> I have created a Rule Container element defined as above - Import only.
>
> I am binding ' _WORKITEM' from the Step to the Workflow Container
> element defined above.
>
> I am binding the Workflow Container element to the Rule Container
> element.
>
> Within the Rule FM I have the following code:
> =========================================================
> INCLUDE <cntn01>.
>
> DATA:
> l_initiator TYPE wfsyst-initiator,
> l_contract TYPE zrcmt_wf0001-contract,
> l_route TYPE zrcmt_wf0003-zzroute,
> l_claim TYPE iclactivity-claim,
> l_subclaim TYPE iclactivity-subclaim,
> l_activity TYPE iclactivity-actnumber,
> l_iclact TYPE swc_object,
> l_key TYPE key,
> l_task1 type sww_task,
> l_rule_wi TYPE swc_object.
>
> * convert persistent container to runtime container
> swc_container_to_runtime ac_container.
>
> swc_get_element ac_container 'INITIATOR' l_initiator.
> swc_get_element ac_container 'CONTRACT' l_contract.
> swc_get_element ac_container 'ICLACT' l_iclact.
> swc_get_element ac_container 'ROUTE' l_route.
> swc_get_element ac_container 'RULE_WI' l_rule_wi.
>
> swc_get_object_key l_iclact l_key.
>
> swc_get_property rule_wi 'WorkitemTask' l_task1.
>
> ===============================================================
> On execution l_rule_wi is empty (RULE_WI) being the Rule Container
> element.
>
> I suspect I'm doing something really dumb here but I cannot see what.
>
> Please help before I go mad ):.
>
> Regards
>
> Keith Gardiner
> SAP Development and Support
>
>
>
> This email and any files transmitted with it are confidential, and may be
> subject to legal privilege, and are intended solely for the use of the
> individual or entity to whom they are addressed.
> If you have received this email in error or think you may have done so,
> you may not peruse, use, disseminate, distribute or copy this message.
> Please notify the sender immediately and delete the original e-mail from
> your system._______________________________________________
> SAP-WUG mailing list
> SAP-WUG at mit.edu
> http://mailman.mit.edu/mailman/listinfo/sap-wug
>


-- 
Mike Pokraka
Senior Consultant
Workflow Connections
Mobile: +44(0)7786 910855




More information about the SAP-WUG mailing list