Highlighted
I am using a Web Service - sbmappservices72/TransitionItem- to transition an item. The transition that is executed moves the item from an Active state to an Inactive state. When executed through the browser interface this works fine, when executed via the web service the transition seems to work , the state is changed, but the item remains active even though the new state is defined as inactive. The items are subtasks and parent item is waiting for the subtasks to complete before it is automatically transitioned, so I need to get this to work. Any ideas?
neal_boswell

Absent Member.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2011-12-05
16:12
9973 views
TransitionItem using web service
I am using a Web Service - sbmappservices72/TransitionItem- to transition an item. The transition that is executed moves the item from an Active state to an Inactive state. When executed through the browser interface this works fine, when executed via the web service the transition seems to work , the state is changed, but the item remains active even though the new state is defined as inactive. The items are subtasks and parent item is waiting for the subtasks to complete before it is automatically transitioned, so I need to get this to work. Any ideas?
4 Replies

Not applicable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2011-12-05
16:23
Re: TransitionItem using web service
Interesting - Is the field Active/InActive on the item being updated when executed with web services?
This sounds wrong as I agree the inactive shold be set automatically -
I would log a case with Serena on it but as a workaround perhaps use web service updateTransition to change Inactive/Active field to Inactive. I'm guessing the value is not being modified when the web service is used.
neal_boswell

Absent Member.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2011-12-05
17:40
Re: TransitionItem using web service
I added ActiveInactive to the xml, and it works, but I didn't think I should have to add that.
<!--
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envel..." xmlns:urn="urn:sbmappservices72">
<soapenv:Header/>
<soapenv:Body>
<urn:TransitionItem>
<urn:auth>
<urn:userId>admin</urn:userId>
<urn:password>******</urn:password>
</urn:auth>
<urn:item>
<urn:id>
<urn:tableIdItemId>1102:2466</urn:tableIdItemId>
</urn:id>
<urn:activeInactive>false</urn:activeInactive>
</urn:item>
<urn:transition>
<urn:id>1324</urn:id>
</urn:transition>
<urn:breakLock>true</urn:breakLock>
</urn:TransitionItem>
</soapenv:Body>
</soapenv:Envelope>
-->

Not applicable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2011-12-05
18:38
Re: TransitionItem using web service
you shouldn't and I agree it should do all the same functions as if a user clicked the transition - This is why I would suggest creating a case with Serena on it. Glad it's working
neal_boswell

Absent Member.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2011-12-06
17:49
Re: TransitionItem using web service
Now step 2. This is working from Soap UI, what does the syntax look like to pass the Soap Envelope to "http://serverName:aePort/gsoap/gsoap_...?
The goal to provide a method for users to click a button (or similar) displayed on an HTML page outside of SBM to trigger an item to be transitioned. Ideally this would be done with Javascript. I just can't picture what the call is going to look like.
Neal