Skip to end of banner
Go to start of banner

Scheduling a Process Run

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Next »

The following document explains how a job task can be send to the scheduler. In order to achieve this scenario, the following method should be implemented:

String setJobInfo(String JobName, String JobDesc, String MasterPartner, String cronExpression, String ejbName, String method, String parameter, CRMSession session)

As we can see, most of the parameters are String type, starting from JobName which is the unique identifier of the job task and JobDesc the optional description of the job accordingly. Then MasterPartner MPID is where the job will run whilst cronExpression used for complex triggers which defines date and time of execution. Next, ejbName defines an ejb class with method name and parameter. Also, current session is passed as parameter to store some important information.

 The example below, performs a normal billing run which is send to the scheduler as a task. In the beginning, we create a new normal billing run (BILLING>BILLING>PERFORM NORMAL BILLING RUNS>NEW), we define when it will be billed and also to the filter tab at subscription sub section, we choose random subscription to execute the normal billing.

 

 Create New Normal Billing Run

 

 

After we save the new normal billing run, we choose to execute up to formatting action and send the task to the scheduler. In addition, going to the scheduled tasks (FOUNDATION>UTILITIES>MANAGE SCHEDULED TASKS), we can see the billing task that been processed, below. 

 

 Scheduler tasks


 


  • No labels