It's all about the answers!

Ask a question

Triggering an external script/program from a state change


Susan Hanson (1.6k2201194) | asked Jan 10 '11, 8:25 a.m.
I need to do some external processing on the state change of a work item. For example, when a work item is moved from "New" to "In progress" state, I need to kick off a script and/or Java Program to do some work in an external system. I can easily write the script/java program, but haven't yet figured out how to trigger the execution of this script/program from within the process configuration/workflow.

Does anyone have an example?
Susan

5 answers



permanent link
Ralph Schoon (63.1k33646) | answered Jan 11 '11, 7:56 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Hi Susan,

to do something like that it is possible to write a server extension (Eclipse plug-in). There are several extension points that might be applicable such as follow up actions on saving work items. This is discussed in the forum: http://jazz.net/forums/viewforum.php?f=2.

There is also a workshop that could help to understand what needs to be done: http://jazz.net/library/article/477.

Ralph

I need to do some external processing on the state change of a work item. For example, when a work item is moved from "New" to "In progress" state, I need to kick off a script and/or Java Program to do some work in an external system. I can easily write the script/java program, but haven't yet figured out how to trigger the execution of this script/program from within the process configuration/workflow.

Does anyone have an example?
Susan

permanent link
Eric Jodet (6.3k5111120) | answered Jan 11 '11, 8:08 a.m.
JAZZ DEVELOPER
Hello Susan,
not sure this will meet your request, but I'm sharing with you the links
I found on jazz.net:
https://jazz.net/wiki/bin/view/Main/TeamProcessDeveloperGuide#Adding_New_Event_Handlers
and
https://jazz.net/wiki/bin/view/Main/ProcessExtensionSchemas#Followup_Action_Template

Hope it helps.
--
Eric JODET
Jazz Development - L3 Maintenance


Le 1/10/2011 2:38 PM, smhanson a crit :
I need to do some external processing on the state change of a work
item. For example, when a work item is moved from "New" to
"In progress" state, I need to kick off a script and/or Java
Program to do some work in an external system. I can easily write the
script/java program, but haven't yet figured out how to trigger the
execution of this script/program from within the process
configuration/workflow.

Does anyone have an example?
Susan

permanent link
Susan Hanson (1.6k2201194) | answered Jan 11 '11, 8:35 a.m.
Thanks Ralph, this looks like the pointer I needed. I've started downloading things, but going through the instructions, it seems that it is 2002-based ... do you know if there is a new one based on 3.0? As well, I don't have a server running on my development laptop, but would run against a server ... is this possible?
Susan


Hi Susan,

to do something like that it is possible to write a server extension (Eclipse plug-in). There are several extension points that might be applicable such as follow up actions on saving work items. This is discussed in the forum: http://jazz.net/forums/viewforum.php?f=2.

There is also a workshop that could help to understand what needs to be done: http://jazz.net/library/article/477.

Ralph

I need to do some external processing on the state change of a work item. For example, when a work item is moved from "New" to "In progress" state, I need to kick off a script and/or Java Program to do some work in an external system. I can easily write the script/java program, but haven't yet figured out how to trigger the execution of this script/program from within the process configuration/workflow.

Does anyone have an example?
Susan

permanent link
Ralph Schoon (63.1k33646) | answered Jan 11 '11, 8:50 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Susan,

you can find more details about the RTC 3.0 SDK here https://jazz.net/wiki/bin/view/Main/RTCHome. The RTC 3.0 SDK says it is very similar to the 2.0 so I would assume you could just go ahead with the description in the workshop. The workshop comes with .tar files for the reposiotry. I assume you could import that in RTC 3.0.

Please also look at Eric's examples.

(Eric, can you tell me the secrete how you found those? I tried to hunt them down for Susan bat to no avail...)

Ralph

Thanks Ralph, this looks like the pointer I needed. I've started downloading things, but going through the instructions, it seems that it is 2002-based ... do you know if there is a new one based on 3.0? As well, I don't have a server running on my development laptop, but would run against a server ... is this possible?
Susan


Hi Susan,

to do something like that it is possible to write a server extension (Eclipse plug-in). There are several extension points that might be applicable such as follow up actions on saving work items. This is discussed in the forum: http://jazz.net/forums/viewforum.php?f=2.

There is also a workshop that could help to understand what needs to be done: http://jazz.net/library/article/477.

Ralph

I need to do some external processing on the state change of a work item. For example, when a work item is moved from "New" to "In progress" state, I need to kick off a script and/or Java Program to do some work in an external system. I can easily write the script/java program, but haven't yet figured out how to trigger the execution of this script/program from within the process configuration/workflow.

Does anyone have an example?
Susan

permanent link
Ralph Schoon (63.1k33646) | answered Jan 11 '11, 8:54 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Susan,

running against a server I missed. Eventually you would have to deploy the result of your efforts on your productive server.

While developing, since the extensions are server side, I'd recommend to follow the script and set up your own test server on your own machine. The instructions describe how to do that.

This is what I typically do: create my own test environment and test server that runs on my laptop until stabelisation. In fact the Jazz developers pretty much do the same.

Ralph

Thanks Ralph, this looks like the pointer I needed. I've started downloading things, but going through the instructions, it seems that it is 2002-based ... do you know if there is a new one based on 3.0? As well, I don't have a server running on my development laptop, but would run against a server ... is this possible?
Susan


Hi Susan,

to do something like that it is possible to write a server extension (Eclipse plug-in). There are several extension points that might be applicable such as follow up actions on saving work items. This is discussed in the forum: http://jazz.net/forums/viewforum.php?f=2.

There is also a workshop that could help to understand what needs to be done: http://jazz.net/library/article/477.

Ralph

I need to do some external processing on the state change of a work item. For example, when a work item is moved from "New" to "In progress" state, I need to kick off a script and/or Java Program to do some work in an external system. I can easily write the script/java program, but haven't yet figured out how to trigger the execution of this script/program from within the process configuration/workflow.

Does anyone have an example?
Susan

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.