public interface WorkflowContainer
Modifier and Type | Method and Description |
---|---|
Session |
getEmailSession()
Use workflow container's outgoing SMTP server to send an email.
|
long |
runJob(long jobid,
int iPriority,
java.util.Map<java.lang.String,java.lang.Object> properties)
Run a job.
|
long |
runJob(long jobid,
int iPriority,
java.util.Map<java.lang.String,java.lang.Object> properties,
java.util.Calendar startTime,
java.util.Calendar endTime)
Run a Job.
|
void |
sendEmailJobAlert(java.lang.String body)
Send simple email alert to all users configured to recieve error/failure emails for this job.
|
long runJob(long jobid, int iPriority, java.util.Map<java.lang.String,java.lang.Object> properties) throws NoRightsToActionException, WorkflowContainerException
jobid
- iPriority
- Values range from 1-20, or -1 for default priorityproperties
- Optional properties to pass to the JobContext as attributes.
Set to null
if no properties.NoRightsToActionException
WorkflowContainerException
long runJob(long jobid, int iPriority, java.util.Map<java.lang.String,java.lang.Object> properties, java.util.Calendar startTime, java.util.Calendar endTime) throws NoRightsToActionException, WorkflowContainerException
jobid
- iPriority
- Values range from 1-20, or -1 for default priorityproperties
- A Map of properties (name/value pairs) passed to the
JobContext when job is run. Set to null
if no properties.startTime
- Optional start time marker to pass to job when it runs.endTime
- Optional end time marker to pass to job when it runs.NoRightsToActionException
WorkflowContainerException
Session getEmailSession()
Session
returned
can be used to send emails.void sendEmailJobAlert(java.lang.String body)
body
- Simple text placed as the body of the email.Copyright © Grand Logic, Inc. All Rights Reserved.