Custom Workflow - **RESOLVED**
Hi,
I would like to create a custom action when transitioning to a particular state/status. Can this be accomplished within the workflow designer?
ie: Transition to "Closed" state will update a field on the current issue and email a notification to a user specified in a custom field.
yu217171
· 1 |
|
Tuesday, November 16, 2010, 6:45:38 PM |
0
|
This is not possible out of the box. However, you could write a plugin the will "listen" to the status change event and will do the work. Look at our twitter plugin for example: http://blogs.countersoft.com/index.php/2010/09/twitter-plug-in-refreshed/ |
||||
|
0
|
Hi Saar, |
||||
|
0
|
Best to look at the sample code: http://www.countersoft.com/downloads/v37/CounterSoftGeminiPlugins.zip |
||||
|
0
|
Hi Saar, Am I supposed to use Reflector to look at the code in the assemblies? I don't see any sample code in the zip file. |
||||
|
0
|
My bad, see the 3.6 version: http://www.countersoft.com/Downloads/v36/CounterSoftGeminiPlugins_Twitter.zip (TwitterPlugin.cs file). |
||||
|
0
|
Thanks Saar. I have written my custom assembly. Do I just copy this to the "bin" folder of the Gemini web app? using System; using System.Collections.Generic; using System.Text; using CounterSoft.Gemini.Commons; using CounterSoft.Gemini.Commons.Entity; using CounterSoft.Gemini.WebServices; using CounterSoft.Gemini.Commons.Rest; namespace Company.Gemini.Plugins { public class IssueEventListener : AbstractIssueListener {
} |
||||
|
0
|
Drop it to the plugins folder that is under the bin directory (create it if not there). |
||||
|
0
|
I put all my referenced assemblies in bin\plugins. I put a bit of debugging code to write to the Event Viewer in the constructor but it doesn't seem to get hit. Any other reasons that you can think of or something I simply missed? |
||||
|
0
|
Please check Gemini's System Log for errors. |
||||
|
0
|
Hi Saar, There are no error messages in the System Log after deploying the assembly into the \bin\plugins folder. |
||||
|
0
|
Can you please send us your code (support at countersoft dot com)? |
||||
|
0
|
Email with source code sent. Thanks. |
||||
|
0
|
We have just tested this and we can see errors in Gemini's system log (related to security and event logs). |
||||
|
0
|
For testing purposes, the app pool identity is part of the local administrators group and has full access to the system. We don't see any errors in the Gemini system log. The same update code runs under the test harness using the REST web services. Is there some other configuration that I am missing? Perhaps, we can hold a quick LiveMeeting session to verify? |
||||
|
0
|
Are you using windows authentication with Gemini (web)? |
||||
|
0
|
Yes, we are using Windows authentication and have disabled anonymous access. |
||||
|
0
|
We may need to do a remote session as we tried it again with a full admin account and win auth and it works (well didn't change the url): |
||||
|
0
|
Just closing the loop on this issue as it has since been RESOLVED. Hopefully someone else can benefit from my experience. The fix was to remove the following DLLs from the /bin/plugins folder. -CounterSoft.Gemini.Commons.dll -Newtownsoft.Json.dll |
||||
|