Hi Avinash,
Before doing this, I would say try this first:
-Shut down your
WS agent, then create a script object and put that script you have in it
and execute it. (It should work if its been configure with the
services manager). If it does not, we can at least take a look at that
first, that way we can make sure the configuration is properly set.
What I did, was I took your script there (and just replace that Agent name with a WS agent on my system). There is a few way to do this:
This is what I had tried;
-I had put that script into the process tab of the workflow level - What this does is when the workflow launches, it will execute the script that is in the workflow process tab (since the Workflow is a container and does not require an Agent), and bring the agent up. Afterward it start executing all the jobs that within the Workflow.
-The other method is to use the EXECUTE_ON_END, what this does is that whenever the Agent goes down, it will then execute the specified object name (in this case, the script you had provided there).
What I did was to create a UC_HOSTCHAR_MYWEBSERVICE then in the UC_EX_HOSTCHAR set the Webservice agent to use the newly created UC_HOSTCHAR_MYWEBSERVICE.
After that I created a Script object and put your script you provided there (and changed the name of the agent to match the one in my system).
Next within my newly created UC_HOSTCHAR_MYWEBSERVICE, I set the "EXECUTE_ON_END" where the "Value" is, I put in the name of my script object. (Notes - The Agent need to be restarted once, for this to start working
Some reference:
on the UC_HOSTCHAR and EXECUTE_ON_ENDSome reference:
on the UC_EX_HOSTCHAR