Role resolution not working

Question: Hi,

my workflow for BUS2012 is triggerring when i use &_WF_INITIATOR& as agent, but when i choose Role and attached the role to it, workflow is not triggerring, i have tested the role individually its getting the agent, no issues. in role Function module is used.

anyone can help to know whats wrong it.

thanks
nickT

Answer:
Check the task container to rule container binding

Answer:
Hi,
checked task container to rule container binding, everything alright.

any other things missing ...

nickT

Answer:
Have you checked the logs for your workflow? - that should give you an idea of the problems - you can check container values, agent assignments etc... which might help you to see where things are going wrong.

When you say your workflow is not triggering, do you mean that no-one is receiving the workitems, or do you mean that no instance of the workflow is started at all?

The only other thing I can think of which could explain why your rule works when you test it, but doesn't in your actual workflow - could it be that there are defaults linked to the user running it, which just aren't there when it's done as a background operation, which is why it fails?

Regards,

Tim

Answer:
checked the log of workflow, NO AGENT found there,
to the Role i have attached the simplest FM. here is the FM.

FUNCTION Z_REL_RESPONSIBLE.
*"----------------------------------------------------------------------
*"*"Local interface:
*" TABLES
*" ACTOR_TAB STRUCTURE SWHACTOR
*" AC_CONTAINER STRUCTURE SWCONT
*" EXCEPTIONS
*" NOBODY_FOUND
*"----------------------------------------------------------------------
INCLUDE <cntn01>.
DATA: l_userid TYPE sysid,
rel_code like rm06b-frgab.

CLEAR: ACTOR_TAB.
REFRESH: ACTOR_TAB.

swc_get_element ac_container 'ReleaseCode' rel_code.
swc_get_element ac_container 'CreatedBy' l_userid.

IF SY-SUBRC EQ 0.
actor_tab-otype = lc_otype_user.
actor_tab-objid = l_userid.
APPEND actor_tab.
ELSE.
RAISE NOBODY_FOUND.
ENDIF.

ENDFUNCTION.



Agent Assignment is properly assigned coz its working fine with WF_INITIATOR.
container values are :

Workflow Container :>

Element Name Exp. Imp. Man.

_WF_Initiator Initiator of workflo X
_WF_Priority Priority X X
_Attach_Objects Attachments X
_Adhoc_Objects Ad hoc objects X
_WI_Group_Id X X
_Workitem Workflow X X
PurchaseOrder Purchase Order X X
ReleaseCode Release Code X X

Role Container :>

Element Name Exp. Imp. Man.

CreatedBy Created by X X
PurchOrganization Purch. organization X X
PurchasingGroup Purchasing group X X
ReleaseCode Release code X X

Binding Responsibility for Role

CreatedBy
&_WF_INITIATOR&
PurchOrganization
&PURCHASEORDER.PURCHORGANIZATION.PURCHORGANIZATION&
PurchasingGroup &PURCHASEORDER.PURCHASINGGROUP.PURCHASINGGROUP&
ReleaseCode
&RELEASECODE& Release Code




i still wonder why its not finding Role..
any clue !!!!!

thanks
nickT

Answer:
Workflow is triggerring when i see in me22n(workflow option),
but ending with ERROR when Role is used.

thanks
nickT
Copyright ?2007 - 2008 www.jt77.com