You can run
pmcmd
in wait or nowait mode. In wait mode,
pmcmd
returns to the shell or command prompt after the command completes. You cannot run subsequent commands until the previous command completes.
For example, if you enter the following command,
pmcmd
starts the workflow “wf_SalesAvg” and does not return to the prompt until the workflow completes:
pmcmd startworkflow -sv MyIntService -d MyDomain -u seller3 -p jackson ‑f SalesEast -wait wf_SalesAvg
In nowait mode,
pmcmd
returns to the shell or command prompt immediately. You do not have to wait for one command to complete before running the next command.
For example, if you enter the following commands,
pmcmd
starts workflow “wf_SalesTotal” even if workflow “wf_SalesAvg” is still running:
pmcmd startworkflow -sv MyIntService -d MyDomain -u seller3 -p jackson ‑f SalesEast wf_SalesAvg
pmcmd startworkflow -sv MyIntService -d MyDomain -u seller3 -p jackson ‑f SalesEast wf_SalesTotal
By default,
pmcmd
executes commands in nowait mode.
You can configure the wait mode when you run in command line or interactive mode. In command line mode, use the -wait option to run a command in wait mode. In interactive mode, use the setwait or setnowait command before entering subsequent commands.