on 03-13-2007 5:06 AM
Hello All,
Can anyone tell me about the Personnel Requisition workflow HRPERSREQ. I am trying to add custom task at the end of the workflow for which I need the position number (OBJID). Does the workflow provide the position number for which the requisition is created at the end of the workflow.
Unless I know the position number (OBJID), I cannot create a new requisition. So does the workflow HRPERSREQ contain position number (OBJID) as an attribute.
Regards
srinivas
Srinivas,
Do you have a workflow definition id? The workflow cannot be found on HRPERSREQ.
regs
Petra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Srinivas,
In order for you to use the workflow container data in your custom task you need to create a container element for the task which is of the same data type as the field that you are looking for in the workflow container. Then map the task container element to the workflow container element while defining the Binding for the activity.
Regards
Bhooma
Hi Sridharan,
Thanks for your reply. I am new to workflow. I created the container element in the task container of the same type as workflow container element (for which am trying to create the binding). Could you please walk me through the process of binding in the binding editor (drag and drop thing).
And also, after I did the binding, how is this container element (in the task), accessible to the method. I mean will it be automatically bound to the method "import" parameter...(where I am using it to extract some other data).
Regards
Srinivas.
Hi Srinivas,
Firstly when you create the container element for the task set is as an import parameter ( Double click on the container element-> Properties (Tab)-> Import(Field) ). Save the task. In SWDD select the activity. Put in the task and Click on Binding button. You will get a pop up showing all the workflow elements and the task elements. Map the workflow element to the task element here. Save and activate the workflow.
In SWO1 open the method for the business object. Click on parameters button and add an import parameter of the same data type as the task container element. In the program add the following code:
Data: newvariable type datatype
swc_get_element container 'NEWVARIABLE' newvariable.
Open the task definition and click on method binding. Map the task container element to the method input parameter.
After these steps you should be able to use the new variable in your code.
Regards
Bhooma
Hi Sridharan,
I have a subtle doubt with your code.
"Data: newvariable type datatype
swc_get_element container 'NEWVARIABLE' newvariable."
I added the import variable by going into the parameters for the method. (say X). Before this, I created a container element (say Y) and set it as import.
Now the 'NEWVARIABLE' (in your code) does it resemble the container element (Y) or the imported parameter (X) ...
Regards.
Srinivas
I really appreciate your patience in going to details. It infact solved my problem. My dilemma is whether to use the delivered method CREATENBOBJECT for the task or my custom method. (I am using a copy of the delivered class CL_HRMSS_RECRUITING_WF for which CREATENBOBJECT is a method). I need to pass some values to a function module, that CREATENBOBJECT calls.
Regards.
Srinivas
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.