ofbiz-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mohd Viqar <mhdwa...@gmail.com>
Subject Re: How to run service some time after another service?
Date Tue, 08 Jan 2013 17:21:26 GMT
Here is an example

<now-timestamp field="currentTime"/>

<set-calendar field="jobruntime" days="14" from-field="currentTime"/>

<log level="info" message="current time is : ${currentTime} and job will run
at : ${jobRuntTime}" />
<make-value value-field="JobSandbox" entity-name="JobSandbox"/>

<sequenced-id sequence-name="JobSandbox" field="jobSandbox.jobId"/>

<set field="JobSandbox.jobName" value="My Service will run after 14 days" />

<set field="JobSandbox.runTime" from-field="jobRuntTime" type="Timestamp"/>

<set field="JobSandbox.poolId" value="pool" />

<set field="JobSandbox.statusId" value="SERVICE_PENDING" />

<set field="JobSandbox.serviceName" value="serviceNameToExecute" /> 

<set field="JobSandbox.runAsUser" value="system" />

<log level="info" message=" - JobSandbox - [${JobSandbox}]"></log>
<check-errors />

<create-value value-field="JobSandbox" or-store="true"/>

Mohd Viqar

View this message in context: http://ofbiz.135035.n4.nabble.com/How-to-run-service-some-time-after-another-service-tp4638744p4638763.html
Sent from the OFBiz - User mailing list archive at Nabble.com.

View raw message