on 2019 Oct 04 4:23 PM
Hello,
I would like to script the scheduling of a process definition.
I have used the basic standard method inside a Redwood Script process definition, like so:
JobDefinition jd = jcsSession.getJobDefinitionByName("MyJD");
Job job = jd.prepare();
job.setSubmitFrame(jcsSession.getSubmitFrameByName("MySubmitFrame"));
jcsSession.persist();
However, this leaves the prepared & submitted child job attached as a child job to this current Redwood Script job.
What I am looking for is a way to create a detached job, just like you would get if you were to manually submit a process definition from the GUI.
How can I go about this? Is it even possible?
Many thanks.
Darryl
Request clarification before answering.
hi Darryl,
add job.setParentJob(null) to detach it from the parent.
Regards Gerben
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
54 | |
6 | |
6 | |
5 | |
5 | |
5 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.