on 10-04-2019 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
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 |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.