To execute a siebel workfow through command line first we need to connect to the server manager through this command:
srvrmgr /g gateway1 /e enterprise1 /s server1 /u sadmin /p pwd
And then execute following command
run task for component WfProcMgr with processname='Test Workflow'
You additionally pass SearchSpec and use workflow process batch manager to execute workflow for multiple records.
run task for component WfProcBatchMgr with processname='Test Workflow', SearchSpec ='[Date]=Today()-1'
This solution has only two limitations,
First, we can not pass values for process properties of the workflow. This has to be done by querying the values first and then calling the actual workflow.
Second, if the batch size is huge it might take few hours to serveral hours to process depending upon the workflow process. This happens because Workflow Process Batch Manager executes the workflow in sequence. That means it will only start the workflow for second record when first is finished.
Please share your experiences with Batch processes designed through command line.
No comments :
Post a Comment