Hi Experts,
I am using the WF Step-Type Ad-Hoc Anchor. Following are the Details for the Scenario:-
I got this Information after searching...how to use Ad-Hoc Anchor..
"In the definition, you save workflows that can replace this step. At runtime, an authorized user can select one of the saved workflows. The ad-hoc anchor is then replaced by the steps of this workflow."
"An ad hoc anchor always has exactly one outcome.The added workflows must have a workflow container that is identical to the workflow container of your workflow.If an added workflow replaces the ad hoc anchor, the workflow container of the workflow added is replaced by the workflow container of your workflow. This enables you to process the new steps in your workflow without having to define a binding.
An ad hoc anchor is not taken into account in the workflow execution. If it is not replaced, the workflow continues as if the step does not exist."
According to these 2 definitions, I created 2 WF Templates and assigned them both as the General Tasks in PFTC for the WF Templates. Now In the First WFf I am using, a simple Send-mail Step Type, which is sending Mails and this WF is working fine. The Mails are being sent to WF Initiator.
In the Next WF Template, I am using Ad-Hoc Anchor and calling First WF in the Second WF. Both the WF have 1 WFContainer Element in common, which is of same type.
Now i am triggering WF Number 2 which contains WF 1. It executes and the Work-item is Completed, but I face 2 issues:-
1> It does not asks me(the User), to select the WF to trigger from the List of WF that I mentined in the WF2..
2> After the execution of the WF 2 , the Graphical Log says, no Agent for the Ad-Hoc Anchor Step Type, but the status is completed, but the Green Line does not goes till the WF Complete Step-Type.
Please Let me know where am I going Wrong..?
Regards,
Kanika