on 04-04-2014 12:04 PM
Hi Experts,
I need your help.
I am using SAP IDM 7.2
Please tell me how to call provisioning Job from ON-Demand Job.
Regards,
C Kumar
As everyone else has already mentioned, the uProvision function is probably what you're looking for. It's well documented in the helpfile so I won't add the parameter description here. A provisioning task can only be run on a mskey/taskid combination so you need to provide both to start the task. That means that you should have a global or job constant pointing to the task, and a script or source select statement that looks up the mskey that you want to start.
Simple example, using a To Generic pass to start the task "Dispatcher test #1.0.0" for 1000 entries whos names start with "USER.10K.TEEST"
Source:
To Generic pass destionation:
TASKID could also be a global constant w. a task reference since tasknames have no uniqueness.
Source SQL Statement:
select top 1000 mcmskey mskey,(select taskid from MXP_Tasks where TaskName = 'Dispatcher test #1.0.0') as taskid
from idmv_entry_simple where mcMskeyValue like 'USER.10KTEEST.%'
Destionation script:
// Main function: execT
function execT(Par){
mskey = Par.get("MSKEY");
taskid = Par.get("TASKID");
OutString = uProvision(mskey,taskid,0,0,"test dispatcer #1.0.0",0);
// uInfo(mskey+":"+taskid+":"+OutString);
return "";
}
Br,
Chris
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kumar,
You can check my blog - http://scn.sap.com/community/netweaver-idm/blog/2013/03/29/how-to-call-a-job-from-a-provisioning-fra... and see if this can help you.
Kind regards,
Simona Lincheva
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If the functionality hasn't been trimmed down in the latest version uProvision is the right thing (and has been ever since).
Some examples:
And finally there is the possibility to use attribute events. Use some flag (sth like ISV_TRIGGER_ME_NOW), set it to the object desired and the task defined on the attribute starts. I guess that is the weakest solution, though.
Best regards
Dominik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm not sure that you can. I don't believe that uProvision works from a standard job. What's your use case, maybe we can find another solution.
Matt
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Matt,
there's a u-function, uStartJob or something, but not sure it worked with Java run-time.
Not sure neither whether the original poster meant workflow task with "provisioning job", that call should work with uProvision like you suggested or setting the task as an event task and writing value to that attribute in the "on demand job".
regards, Tero
User | Count |
---|---|
83 | |
9 | |
9 | |
8 | |
7 | |
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.