Package com.avoka.tm.job
Class Jobs
java.lang.Object
com.avoka.tm.job.Jobs
Provides Job utility functions.
Examples
Get Start Transaction
Return the start (first) transaction for the job.
import com.avoka.tm.job.* import com.avoka.tm.vo.* Txn txn = Jobs.getStartTxn(job)
Get Start Transaction XML Data
Return the XML of the start transaction for the job.
import com.avoka.tm.job.* import com.avoka.tm.util.* import com.avoka.tm.vo.* String xml = Jobs.getStartTxnXml(job) Path path = new Path(xml)
Get Start User
Return the User of the starting transaction for the job.
import com.avoka.tm.job.* import com.avoka.tm.vo.* User user = Jobs.getStartUser(job)
- Since:
- 5.0.0
- 
Method SummaryModifier and TypeMethodDescriptionstatic TxngetStartTxn(Job job) Return the start transaction for the given job.static StringgetStartTxnXml(Job job) Return the start transaction XML for the given job.static UsergetStartUser(Job job) Return the start user for the given job.
- 
Method Details- 
getStartTxnReturn the start transaction for the given job. The returned transaction include formDataMap, groupNames and propertyMap.Exampleimport com.avoka.tm.job.* import com.avoka.tm.vo.* Txn txn = Jobs.getStartTxn(job) - Parameters:
- job- the job to query (required)
- Returns:
- the start transaction, or null if not found
 
- 
getStartTxnXmlReturn the start transaction XML for the given job.Exampleimport com.avoka.tm.job.* import com.avoka.tm.util.* import com.avoka.tm.vo.* String xml = Jobs.getStartTxnXml(job) Path path = new Path(xml) - Parameters:
- job- the job to query (required)
- Returns:
- the start transaction XML, or null if not found
 
- 
getStartUserReturn the start user for the given job.Exampleimport com.avoka.tm.job.* import com.avoka.tm.vo.* User user = Jobs.getStartUser(job) - Parameters:
- job- the job to query (required)
- Returns:
- the start user, or null if not found
 
 
-