<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Burak BÖLEK - Blog &#187; Maximo Tips</title>
	<atom:link href="http://www.burakbolek.com/blog/category/maximotips/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.burakbolek.com/blog</link>
	<description>Burak BÖLEK</description>
	<lastBuildDate>Wed, 02 Nov 2011 20:03:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Finally Rest API in Maximo :)</title>
		<link>http://www.burakbolek.com/blog/2011/11/finally-rest-api-in-maximo/</link>
		<comments>http://www.burakbolek.com/blog/2011/11/finally-rest-api-in-maximo/#comments</comments>
		<pubDate>Wed, 02 Nov 2011 20:01:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Maximo Tips]]></category>

		<guid isPermaLink="false">http://www.burakbolek.com/blog/?p=166</guid>
		<description><![CDATA[Hello; IBM introduced Rest Api documentation finally. As you know Rest api was being used since TSRM 7.2. Now users can use and enhance it according to their needs.. You can get data as XML or JSON format (JSON is a great format if you&#8217;re dealing with javascript ) (More info about JSON: http://en.wikipedia.org/wiki/JSON) You [...]]]></description>
			<content:encoded><![CDATA[<p>Hello;</p>
<p>IBM introduced Rest Api documentation finally. As you know Rest api was being used since TSRM 7.2. Now users can use and enhance it according to their needs..</p>
<p>You can get data as XML or JSON format (JSON is a great format if you&#8217;re dealing with javascript ) (More info about JSON: <a href="http://en.wikipedia.org/wiki/JSON">http://en.wikipedia.org/wiki/JSON</a>)</p>
<p>You can find documentation at <a title="IBM Site" href="http://publib.boulder.ibm.com/infocenter/tivihelp/v49r1/topic/com.ibm.mbs.doc/gp_intfrmwk/rest_api/c_rest_overview.html" target="_blank">here</a>.</p>
<p>Have a great day..</p>
]]></content:encoded>
			<wfw:commentRss>http://www.burakbolek.com/blog/2011/11/finally-rest-api-in-maximo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Great Blog About Maximo</title>
		<link>http://www.burakbolek.com/blog/2011/10/great-blog-about-maximo/</link>
		<comments>http://www.burakbolek.com/blog/2011/10/great-blog-about-maximo/#comments</comments>
		<pubDate>Wed, 12 Oct 2011 06:40:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Maximo Tips]]></category>

		<guid isPermaLink="false">http://www.burakbolek.com/blog/?p=164</guid>
		<description><![CDATA[Hi! I discovered this great blog about Maximo. There are really good documents in it: https://www.ibm.com/developerworks/mydeveloperworks/blogs/a9ba1efe-b731-4317-9724-a181d6155e3a/?lang=en&#038;follow=true &#160; Have a great reading:)]]></description>
			<content:encoded><![CDATA[<p>Hi!<br />
I discovered this great blog about Maximo. There are really good documents in it:</p>
<p>https://www.ibm.com/developerworks/mydeveloperworks/blogs/a9ba1efe-b731-4317-9724-a181d6155e3a/?lang=en&#038;follow=true</p>
<p>&nbsp;</p>
<p>Have a great reading:)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.burakbolek.com/blog/2011/10/great-blog-about-maximo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Jython Example</title>
		<link>http://www.burakbolek.com/blog/2011/08/jython-example/</link>
		<comments>http://www.burakbolek.com/blog/2011/08/jython-example/#comments</comments>
		<pubDate>Tue, 23 Aug 2011 07:47:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Maximo Tips]]></category>
		<category><![CDATA[jython]]></category>

		<guid isPermaLink="false">http://www.burakbolek.com/blog/?p=150</guid>
		<description><![CDATA[Hello; Here is an example of Jython script. You can see the basic usage of jython scripts in Maximo&#8230; from psdi.security import UserInfo from psdi.mbo import MboServerInterface &#160; mboServer = scriptHome.getMboServer&#40;&#41;; user = scriptHome.getUserInfo&#40;&#41;; PO=scriptHome if&#40;PO.getMboSet&#40;&#34;POLINEAST&#34;&#41;.count&#40;&#41;&#62;0&#41;: #Create Workorder woSet= mboServer.getMboSet&#40;&#34;WORKORDER&#34;, user&#41; wo=woSet.addAtEnd&#40;&#41; wo.setValue&#40;&#34;APPNAME&#34;, &#34;PO&#34;&#41;; wo.setValue&#40;&#34;DESCRIPTION&#34;, PO.getString&#40;&#34;DESCRIPTION&#34;&#41;+&#34; Teslim Alma Istegi&#34;&#41; wo.setValue&#40;&#34;DESCRIPTION_LONGDESCRIPTION&#34;,PO.getString&#40;&#34;PONUM&#34;&#41;+&#34; numarali satinalma emri ile alinan [...]]]></description>
			<content:encoded><![CDATA[<p>Hello;</p>
<p>Here is an example of Jython script. You can see the basic usage of jython scripts in Maximo&#8230;</p>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;"><span style="color: #ff7700;font-weight:bold;">from</span> psdi.<span style="color: black;">security</span> <span style="color: #ff7700;font-weight:bold;">import</span> UserInfo
<span style="color: #ff7700;font-weight:bold;">from</span> psdi.<span style="color: black;">mbo</span> <span style="color: #ff7700;font-weight:bold;">import</span> MboServerInterface
&nbsp;
mboServer = scriptHome.<span style="color: black;">getMboServer</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span><span style="color: #66cc66;">;</span>
<span style="color: #dc143c;">user</span> = scriptHome.<span style="color: black;">getUserInfo</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span><span style="color: #66cc66;">;</span>
PO=scriptHome
<span style="color: #ff7700;font-weight:bold;">if</span><span style="color: black;">&#40;</span>PO.<span style="color: black;">getMboSet</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;POLINEAST&quot;</span><span style="color: black;">&#41;</span>.<span style="color: black;">count</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span><span style="color: #66cc66;">&gt;</span><span style="color: #ff4500;">0</span><span style="color: black;">&#41;</span>:
	<span style="color: #808080; font-style: italic;">#Create Workorder</span>
	woSet= mboServer.<span style="color: black;">getMboSet</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;WORKORDER&quot;</span>, <span style="color: #dc143c;">user</span><span style="color: black;">&#41;</span>
	wo=woSet.<span style="color: black;">addAtEnd</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>
	wo.<span style="color: black;">setValue</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;APPNAME&quot;</span>, <span style="color: #483d8b;">&quot;PO&quot;</span><span style="color: black;">&#41;</span><span style="color: #66cc66;">;</span>
	wo.<span style="color: black;">setValue</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;DESCRIPTION&quot;</span>, PO.<span style="color: black;">getString</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;DESCRIPTION&quot;</span><span style="color: black;">&#41;</span>+<span style="color: #483d8b;">&quot; Teslim Alma Istegi&quot;</span><span style="color: black;">&#41;</span>
	wo.<span style="color: black;">setValue</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;DESCRIPTION_LONGDESCRIPTION&quot;</span>,PO.<span style="color: black;">getString</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;PONUM&quot;</span><span style="color: black;">&#41;</span>+<span style="color: #483d8b;">&quot; numarali satinalma emri ile alinan malzemeler icin teslim alma is istegi&quot;</span><span style="color: black;">&#41;</span>
	wo.<span style="color: black;">setValue</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;GENERATEDFORPO&quot;</span>,PO.<span style="color: black;">getString</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;PONUM&quot;</span><span style="color: black;">&#41;</span><span style="color: black;">&#41;</span>
	wo.<span style="color: black;">setValue</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;SCHEDSTART&quot;</span>, PO.<span style="color: black;">getDate</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;VENDELIVERYDATE&quot;</span><span style="color: black;">&#41;</span><span style="color: black;">&#41;</span>
&nbsp;
	<span style="color: #808080; font-style: italic;">#Custom Set </span>
	iswocustomSet=mboServer.<span style="color: black;">getMboSet</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;ISWOCUSTOM&quot;</span>, <span style="color: #dc143c;">user</span><span style="color: black;">&#41;</span>
	iswocustom =iswocustomSet.<span style="color: black;">addAtEnd</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>
	iswocustom.<span style="color: black;">setValue</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;WORKORDERID&quot;</span>, wo.<span style="color: black;">getInt</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;WORKORDERID&quot;</span><span style="color: black;">&#41;</span><span style="color: black;">&#41;</span>
&nbsp;
	<span style="color: #808080; font-style: italic;">#Create Activity for each POLINE</span>
&nbsp;
	activitySet= wo.<span style="color: black;">getMboSet</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;WOACTIVITY&quot;</span><span style="color: black;">&#41;</span>
	num=PO.<span style="color: black;">getMboSet</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;POLINEAST&quot;</span><span style="color: black;">&#41;</span>.<span style="color: black;">count</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>
	<span style="color: #ff7700;font-weight:bold;">for</span> i <span style="color: #ff7700;font-weight:bold;">in</span> <span style="color: #008000;">range</span><span style="color: black;">&#40;</span>num<span style="color: black;">&#41;</span> :
&nbsp;
		activity = activitySet.<span style="color: black;">addAtEnd</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>
		poLine=PO.<span style="color: black;">getMboSet</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;POLINE&quot;</span><span style="color: black;">&#41;</span>.<span style="color: black;">getMbo</span><span style="color: black;">&#40;</span>i<span style="color: black;">&#41;</span>
		kisi=<span style="color: #483d8b;">&quot;&quot;</span>
		<span style="color: #ff7700;font-weight:bold;">if</span><span style="color: black;">&#40;</span>poLine.<span style="color: black;">getMboSet</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;RL2&quot;</span><span style="color: black;">&#41;</span>.<span style="color: black;">count</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>==<span style="color: #ff4500;">1</span><span style="color: black;">&#41;</span> :
			kisi=poLine.<span style="color: black;">getMboSet</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;RL2&quot;</span><span style="color: black;">&#41;</span>.<span style="color: black;">getMbo</span><span style="color: black;">&#40;</span><span style="color: #ff4500;">0</span><span style="color: black;">&#41;</span>.<span style="color: black;">getString</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;DISPLAYNAME&quot;</span><span style="color: black;">&#41;</span> +<span style="color: #483d8b;">&quot; teslim alacaktir.&quot;</span>
		activity.<span style="color: black;">setValue</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;DESCRIPTION&quot;</span>, PO.<span style="color: black;">getString</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;DESCRIPTION&quot;</span><span style="color: black;">&#41;</span>+<span style="color: #483d8b;">&quot; satinalma emri &quot;</span> + poLine.<span style="color: black;">getMboSet</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;ITEM&quot;</span><span style="color: black;">&#41;</span>.<span style="color: black;">getMbo</span><span style="color: black;">&#40;</span><span style="color: #ff4500;">0</span><span style="color: black;">&#41;</span>.<span style="color: black;">getString</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;DESCRIPTION&quot;</span><span style="color: black;">&#41;</span> +<span style="color: #483d8b;">&quot; icin Teslim Alma Aktivitesi&quot;</span><span style="color: black;">&#41;</span>
		activity.<span style="color: black;">setValue</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;SCHEDSTART&quot;</span>, poLine.<span style="color: black;">getDate</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;VENDELIVERYDATE&quot;</span><span style="color: black;">&#41;</span><span style="color: black;">&#41;</span>
		wo.<span style="color: black;">setValue</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;SCHEDSTART&quot;</span>, poLine.<span style="color: black;">getDate</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;VENDELIVERYDATE&quot;</span><span style="color: black;">&#41;</span><span style="color: black;">&#41;</span>
		activity.<span style="color: black;">setValue</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;APPNAME&quot;</span>, <span style="color: #483d8b;">&quot;ASSETSTD&quot;</span><span style="color: black;">&#41;</span>
		iswocustom2 =iswocustomSet.<span style="color: black;">addAtEnd</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>
		iswocustom2.<span style="color: black;">setValue</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;WORKORDERID&quot;</span>, activity.<span style="color: black;">getInt</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;WORKORDERID&quot;</span><span style="color: black;">&#41;</span><span style="color: black;">&#41;</span>
		iswocustom2.<span style="color: black;">setValue</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;ITEMNUM&quot;</span>, poLine.<span style="color: black;">getString</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;ITEMNUM&quot;</span><span style="color: black;">&#41;</span><span style="color: black;">&#41;</span>
		iswocustom2.<span style="color: black;">setValue</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;POLINEID&quot;</span>, poLine.<span style="color: black;">getString</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">&quot;POLINEID&quot;</span><span style="color: black;">&#41;</span><span style="color: black;">&#41;</span>
&nbsp;
	wo.<span style="color: black;">getThisMboSet</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>.<span style="color: black;">save</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>
	iswocustomSet.<span style="color: black;">save</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>
	iswocustomSet.<span style="color: black;">cleanup</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.burakbolek.com/blog/2011/08/jython-example/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create Complex Web Services in Maximo</title>
		<link>http://www.burakbolek.com/blog/2011/08/create-complex-web-services-in-maximo/</link>
		<comments>http://www.burakbolek.com/blog/2011/08/create-complex-web-services-in-maximo/#comments</comments>
		<pubDate>Tue, 23 Aug 2011 07:26:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Maximo Tips]]></category>

		<guid isPermaLink="false">http://www.burakbolek.com/blog/?p=145</guid>
		<description><![CDATA[Hello; As you know there are standart web services in Maximo for WORKORDER,TICKET, etc.. You can change status of a ticket or workorder or something else with these web services.. But sometimes these web services are not enough. For example assume you want to calculate some data in Maximo according to that you will assign [...]]]></description>
			<content:encoded><![CDATA[<p>Hello;</p>
<p>As you know there are standart web services in Maximo for WORKORDER,TICKET, etc.. You can change status of a ticket or workorder or something else with these web services..</p>
<p>But sometimes these web services are not enough. For example assume you want to calculate some data in Maximo according to that you will assign workorder to a user then change the status of workorder.</p>
<p>In this case, you can create your own web services with a couple lines of code&#8230;</p>
<p>First of all, you should extend Maximo Service Class (for WORKORDER example com.ibm.ism.pmcom.PmComWOService (in my case), for you this class can be psdi.app.workorder.WOService)<br />
You can learn which class to extend from Database Configuration.</p>
<p>Go to Database Configuration.<br />
Click Select Action Menu and find the service you want to extend. (You can create your own services here)</p>
<p>Then open eclipse and here is the code:)</p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">package</span> <span style="color: #006699;">custom.services</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.rmi.RemoteException</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javax.jws.WebMethod</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">psdi.iface.webservices.action.WSMboKey</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">psdi.server.MXServer</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">psdi.util.MXException</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">com.ibm.ism.pmcom.PmComWOService</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">custom.app.workorder.WOExtRemote</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> WOService <span style="color: #000000; font-weight: bold;">extends</span> PmComWOService <span style="color: #009900;">&#123;</span>
&nbsp;
	<span style="color: #008000; font-style: italic; font-weight: bold;">/**
	 * 
	 */</span>
	<span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000000; font-weight: bold;">final</span> <span style="color: #000066; font-weight: bold;">long</span> serialVersionUID <span style="color: #339933;">=</span> <span style="color: #339933;">-</span>157829023628868467L<span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">public</span> WOService<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">throws</span> <span style="color: #003399;">RemoteException</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">super</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #666666; font-style: italic;">// TODO Auto-generated constructor stub</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #666666; font-style: italic;">//WOService(MXServer mxServer) method must exist, otherwise service does not start</span>
	<span style="color: #000000; font-weight: bold;">public</span> WOService<span style="color: #009900;">&#40;</span>MXServer mxServer<span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">throws</span> <span style="color: #003399;">RemoteException</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">super</span><span style="color: #009900;">&#40;</span>mxServer<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #666666; font-style: italic;">// TODO Auto-generated constructor stub</span>
	<span style="color: #009900;">&#125;</span>
	@WebMethod
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> testWebService<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
		<span style="color: #003399;">System</span>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Hello Maximo Web Services()&quot;</span><span style="color: #339933;">+</span>getURL<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #009900;">&#125;</span>
<span style="color: #666666; font-style: italic;">//Don't forget @WebMethod annotations..</span>
	@WebMethod
	<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> testWebService2<span style="color: #009900;">&#40;</span>@WSMboKey<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;WORKORDER&quot;</span><span style="color: #009900;">&#41;</span> WOExtRemote wo,<span style="color: #003399;">String</span> owner<span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">throws</span> <span style="color: #003399;">RemoteException</span>, MXException<span style="color: #009900;">&#123;</span>
		<span style="color: #003399;">System</span>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Hello Maximo Web Services2()&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		wo.<span style="color: #006633;">setValue</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;OWNER&quot;</span>, owner<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>Now deploy code then write your own class in Database Configuration.. Then Restart..</p>
<p>Deploy Web Services.. (If deployed, undeploy and deploy..)<br />
Now you can see your new methods in WSDL and you can try your new web services&#8230;</p>
<p>Have a good day&#8230;.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.burakbolek.com/blog/2011/08/create-complex-web-services-in-maximo/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Create Incident with PHP via Web Services</title>
		<link>http://www.burakbolek.com/blog/2011/07/create-incident-with-php-via-web-services/</link>
		<comments>http://www.burakbolek.com/blog/2011/07/create-incident-with-php-via-web-services/#comments</comments>
		<pubDate>Thu, 14 Jul 2011 12:28:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Maximo Tips]]></category>

		<guid isPermaLink="false">http://www.burakbolek.com/blog/?p=139</guid>
		<description><![CDATA[Hi!; It&#8217;s been a long time since my last post. I couldn&#8217;t write because I completed my military service Now I will try to continue where I was:) Here is an example of code how to call web services with PHP&#8230; Have a great day&#8230; &#60;?php $client = new SoapClient&#40;&#34;https://maximoserver/meaweb/wsdl/EXTSYS1_VRINCIDENTSRV.wsdl&#34;, array&#40;'login' =&#62; &#34;maxadmin&#34;, 'password' =&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>Hi!;</p>
<p>It&#8217;s been a long time since my last post. I couldn&#8217;t write because I completed my military service <img src='http://www.burakbolek.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Now I will try to continue where I was:)</p>
<p>Here is an example of code how to call web services with PHP&#8230;</p>
<p>Have a great day&#8230;</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
  <span style="color: #000088;">$client</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> SoapClient<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;https://maximoserver/meaweb/wsdl/EXTSYS1_VRINCIDENTSRV.wsdl&quot;</span><span style="color: #339933;">,</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'login'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;maxadmin&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'password'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;maxadmin&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$paramsChild</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ENVIRONMENT</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;Production&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$paramsChild</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">REPORTEDBY</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;MAXADMIN&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$paramsChild</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">AFFECTEDPERSON</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;MAXADMIN&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$paramsChild</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">CLASSIFICATIONID</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;TESTCLASSIFICATION&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$paramsChild</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">CLASSSTRUCTUREID</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;13495&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$paramsChild</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">IMPACT</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;4&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$paramsChild</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">URGENCY</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;3&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$paramsChild</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">DESCRIPTION</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;soap test php&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$paramsChild</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">DESCRIPTION_LONGDESCRIPTION</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;soap php Long Description&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$paramsChild</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ISCURRENTQUEUE</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;TESTQUEUE&quot;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$paramsParent</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">INCIDENT</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$paramsChild</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$params</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">VRINCIDENTSet</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$paramsParent</span><span style="color: #339933;">;</span>
&nbsp;
  try<span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$incident</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$client</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">CreateVRINCIDENT</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$params</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>    
    <span style="color: #000088;">$ticketid</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$incident</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">INCIDENTMboKeySet</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">INCIDENT</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">TICKETID</span><span style="color: #339933;">-&gt;</span>_<span style="color: #339933;">;</span>
    <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;Incident Number:&quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$ticketid</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
  catch <span style="color: #009900;">&#40;</span>Exception <span style="color: #000088;">$exc</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
  <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;Soap Error: &quot;</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$exc</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getMessage</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Thanks to Sercan Keskin for this code example&#8230;<code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.burakbolek.com/blog/2011/07/create-incident-with-php-via-web-services/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Turkish Language Support for TSRM</title>
		<link>http://www.burakbolek.com/blog/2010/09/turkish-language-support-for-tsrm/</link>
		<comments>http://www.burakbolek.com/blog/2010/09/turkish-language-support-for-tsrm/#comments</comments>
		<pubDate>Fri, 03 Sep 2010 06:50:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Maximo Tips]]></category>

		<guid isPermaLink="false">http://www.burakbolek.com/blog/?p=137</guid>
		<description><![CDATA[Finally Turkish language is officially supported by IBM. You can install Turkish pack with 7.1.1.7 MBS. Thanks IBM for supporting Turkish.. I will finally able to use Maximo in my own language..]]></description>
			<content:encoded><![CDATA[<p>Finally Turkish language is officially supported by IBM. You can install Turkish pack with 7.1.1.7 MBS.</p>
<p>Thanks IBM for supporting Turkish.. I will finally able to use Maximo in my own language..</p>
]]></content:encoded>
			<wfw:commentRss>http://www.burakbolek.com/blog/2010/09/turkish-language-support-for-tsrm/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Link for ResultSet</title>
		<link>http://www.burakbolek.com/blog/2010/07/link-for-resultset/</link>
		<comments>http://www.burakbolek.com/blog/2010/07/link-for-resultset/#comments</comments>
		<pubDate>Fri, 23 Jul 2010 08:58:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Maximo Tips]]></category>

		<guid isPermaLink="false">http://www.burakbolek.com/blog/?p=135</guid>
		<description><![CDATA[Hello; It&#8217;s been a while since I wrote . I am a little busier then ever.. Today I learnt something new that I should share with you.. You can create links to the resultset in Maximo.. Here is an example: http://maximo1/maximo/ui/?event=loadapp&#038;value=wotrack&#038;additionalevent=sqlwhere&#038;additionaleventvalue=reportedby in (&#8216;MAXADMIN&#8217;) Here: Workorder Tracking (wotrack) will be loaded with SQL (reportedby in (&#8216;MAXADMIN&#8217;)) [...]]]></description>
			<content:encoded><![CDATA[<p>Hello;</p>
<p>It&#8217;s been a while since I wrote <img src='http://www.burakbolek.com/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> . I am a little busier then ever.. Today I learnt something new that I should share with you..</p>
<p>You can create links to the resultset in Maximo.. Here is an example:</p>
<p><strong>http://maximo1/maximo/ui/?event=loadapp&#038;value=wotrack&#038;additionalevent=sqlwhere&#038;additionaleventvalue=reportedby in (&#8216;MAXADMIN&#8217;)</strong></p>
<p>Here: Workorder Tracking (wotrack) will be loaded with SQL (reportedby in (&#8216;MAXADMIN&#8217;))</p>
<p>This will give you the all workorders which are reported by MAXADMIN..</p>
<p>You can change wotrack with any application and sql sentence with whatever you want&#8230;</p>
<p>Have a good day..</p>
]]></content:encoded>
			<wfw:commentRss>http://www.burakbolek.com/blog/2010/07/link-for-resultset/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>New IBM Resources</title>
		<link>http://www.burakbolek.com/blog/2010/01/new-ibm-resources/</link>
		<comments>http://www.burakbolek.com/blog/2010/01/new-ibm-resources/#comments</comments>
		<pubDate>Wed, 27 Jan 2010 11:49:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Maximo Tips]]></category>

		<guid isPermaLink="false">http://www.burakbolek.com/blog/?p=133</guid>
		<description><![CDATA[Hello; As I noticed yesterday IBM published some new materials for Maximo 7.x Here is the development guide for Maximo 7: http://www-01.ibm.com/software/brandcatalog/portal/opal/details?catalog.label=1TW10MA2K Here is the javadocs for Maximo 7.1.1.5 (Different than 7.1.1.1) http://www-01.ibm.com/software/brandcatalog/portal/opal/details?catalog.label=1TW10MA1Z Have a good day&#8230;]]></description>
			<content:encoded><![CDATA[<p>Hello;</p>
<p>As I noticed yesterday IBM published some new materials for Maximo 7.x<br />
Here is the development guide for Maximo 7:<br />
<a href="http://www-01.ibm.com/software/brandcatalog/portal/opal/details?catalog.label=1TW10MA2K">http://www-01.ibm.com/software/brandcatalog/portal/opal/details?catalog.label=1TW10MA2K</a></p>
<p>Here is the javadocs for Maximo 7.1.1.5 (Different than 7.1.1.1)<br />
<a href="http://www-01.ibm.com/software/brandcatalog/portal/opal/details?catalog.label=1TW10MA1Z">http://www-01.ibm.com/software/brandcatalog/portal/opal/details?catalog.label=1TW10MA1Z</a></p>
<p>Have a good day&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.burakbolek.com/blog/2010/01/new-ibm-resources/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Stop Workflow of a Closed Record</title>
		<link>http://www.burakbolek.com/blog/2009/12/stop-workflow-of-a-closed-record/</link>
		<comments>http://www.burakbolek.com/blog/2009/12/stop-workflow-of-a-closed-record/#comments</comments>
		<pubDate>Sun, 20 Dec 2009 17:01:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Maximo Tips]]></category>

		<guid isPermaLink="false">http://www.burakbolek.com/blog/?p=127</guid>
		<description><![CDATA[Hello; Many people have records those are closed automatically via automation tools like Omnibus, or escalations. And these records remain in workflow even they are closed. So there is a little piece of code which can resolve this problems.. First go to the database configuration and create a relationship called &#8220;ACTIVEWORKFLOW&#8221; which can get you [...]]]></description>
			<content:encoded><![CDATA[<p>Hello;</p>
<p>Many people have records those are closed automatically via automation tools like Omnibus, or escalations. And these records remain in workflow even they are closed. So there is a little piece of code which can resolve this problems..<br />
First go to the database configuration and create a relationship called &#8220;ACTIVEWORKFLOW&#8221; which can get you active workflows on the record. An example of ticket should be like this:<br />
<strong>Name: ACTIVEWORKFLOW<br />
Child Object: WFINSTANCE<br />
Where Clause: ownerid=:ticketuid and ownertable=:CLASS and active=1<br />
Remarks: Gets the related active workflow instances<br />
</strong><br />
Now create the class and rebuild redeploy maximo.ear..<br />
Now all you have to do is to create an escalation which runs every 10 minutes.(Or whatever you want) Make sure you have stated closed records in where clause.. (Write historyflag=1 for workorder or ticket objects)<br />
And make it run&#8230; </p>
<p>Note: You can run this code for every object. Because the code is written for Mbo Object.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
</pre></td><td class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">package</span> <span style="color: #006699;">custom.common.action</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.rmi.RemoteException</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">psdi.mbo.MboRemote</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">psdi.util.MXException</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">psdi.workflow.WFInstanceRemote</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">psdi.workflow.WFInstanceSetRemote</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> stopWFonClosedRecords <span style="color: #000000; font-weight: bold;">implements</span>
psdi.<span style="color: #006633;">common</span>.<span style="color: #006633;">action</span>.<span style="color: #006633;">ActionCustomClass</span> <span style="color: #009900;">&#123;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> applyCustomAction<span style="color: #009900;">&#40;</span>MboRemote mbo, <span style="color: #003399;">Object</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> arg1<span style="color: #009900;">&#41;</span>
<span style="color: #000000; font-weight: bold;">throws</span> MXException, <span style="color: #003399;">RemoteException</span> <span style="color: #009900;">&#123;</span>
<span style="color: #666666; font-style: italic;">// TODO Auto-generated method stub</span>
WFInstanceSetRemote wfInstanceSet<span style="color: #339933;">=</span><span style="color: #009900;">&#40;</span>WFInstanceSetRemote<span style="color: #009900;">&#41;</span> mbo.<span style="color: #006633;">getMboSet</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;ACTIVEWORKFLOW&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>wfInstanceSet.<span style="color: #006633;">isEmpty</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
<span style="color: #000000; font-weight: bold;">for</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">int</span> i<span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>i<span style="color: #339933;">&lt;</span>wfInstanceSet.<span style="color: #006633;">count</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
WFInstanceRemote wfInst<span style="color: #339933;">=</span><span style="color: #009900;">&#40;</span>WFInstanceRemote<span style="color: #009900;">&#41;</span> wfInstanceSet.<span style="color: #006633;">getMbo</span><span style="color: #009900;">&#40;</span>i<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
wfInst.<span style="color: #006633;">stopWorkflow</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Auto Stop&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>  <span style="color: #666666; font-style: italic;">// Memo of the transaction...</span>
wfInstanceSet.<span style="color: #006633;">save</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.burakbolek.com/blog/2009/12/stop-workflow-of-a-closed-record/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Route workflow from a table row</title>
		<link>http://www.burakbolek.com/blog/2009/12/route-workflow-from-a-table-row/</link>
		<comments>http://www.burakbolek.com/blog/2009/12/route-workflow-from-a-table-row/#comments</comments>
		<pubDate>Sun, 20 Dec 2009 16:46:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Maximo Tips]]></category>

		<guid isPermaLink="false">http://www.burakbolek.com/blog/?p=124</guid>
		<description><![CDATA[Hello; Sometimes you need to start workflow of child records from the parent record&#8230; For example you have a problem record and there are 5 child activities. Normally you have to start workflow by going to the related record. With this piece of code you can start workflow from the Activities table of the parent [...]]]></description>
			<content:encoded><![CDATA[<p>Hello;</p>
<p>Sometimes you need to start workflow of child records from the parent record&#8230; For example you have a problem record and there are 5 child activities. Normally you have to start workflow by going to the related record. With this piece of code you can start workflow from the Activities table of the parent problem record.<br />
First create a ROUTEWF Button in the table. To do this drop a new tablecol to the table. And select Event as type. Select a route image. And enter ROUTEWF as event name.<br />
Then change the bean class name to your class which you are creating now. (Be careful; I extended Problem activities table bean class here, you should extend whatever you need.)<br />
Write your workflow name to the <strong>WFNAME</strong> in the code.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
</pre></td><td class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">package</span> <span style="color: #006699;">custom.beans.app.problem</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">com.ibm.tsd.pmcom.webclient.beans.PmActivitiesBean</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">psdi.app.workorder.WOActivityRemote</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">psdi.server.MXServer</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">psdi.webclient.system.controller.SessionContext</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">psdi.workflow.WorkFlowServiceRemote</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> problemActivitiesBean <span style="color: #000000; font-weight: bold;">extends</span> PmActivitiesBean
<span style="color: #009900;">&#123;</span>
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">int</span> ROUTEWF<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
MXServer mxs<span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">try</span>
<span style="color: #009900;">&#123;</span>
mxs <span style="color: #339933;">=</span> MXServer.<span style="color: #006633;">getMXServer</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
WorkFlowServiceRemote wsrmt <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>WorkFlowServiceRemote<span style="color: #009900;">&#41;</span>mxs.<span style="color: #006633;">lookup</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;WORKFLOW&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
WOActivityRemote mbo <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>WOActivityRemote<span style="color: #009900;">&#41;</span>getMbo<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
wsrmt.<span style="color: #006633;">initiateWorkflow</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;WFNAME&quot;</span>, mbo<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
fireStructureChangedEvent<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
refreshTable<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">sessionContext</span>.<span style="color: #006633;">queueRefreshEvent</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">catch</span> <span style="color: #009900;">&#40;</span><span style="color: #003399;">Exception</span> e<span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
e.<span style="color: #006633;">printStackTrace</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">return</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>You&#8217;re good to go now;</p>
<p>Have a good day&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.burakbolek.com/blog/2009/12/route-workflow-from-a-table-row/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

