<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Executing Sun IdM XPress Rules from Java</title>
	<atom:link href="http://www.topicobserver.com/blog/tools/sun-idm/2009/executing-sun-idm-xpress-rules-from-java/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.topicobserver.com/blog/tools/sun-idm/2009/executing-sun-idm-xpress-rules-from-java/</link>
	<description>Trond Pettersen on Web Development and Topic Maps</description>
	<lastBuildDate>Tue, 10 Aug 2010 00:25:18 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Aravind</title>
		<link>http://www.topicobserver.com/blog/tools/sun-idm/2009/executing-sun-idm-xpress-rules-from-java/comment-page-1/#comment-8467</link>
		<dc:creator>Aravind</dc:creator>
		<pubDate>Thu, 08 Jul 2010 11:01:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.topicobserver.com/blog/?p=382#comment-8467</guid>
		<description>Please give me a code snippet of java which invokes Sun IDM workflows.</description>
		<content:encoded><![CDATA[<p>Please give me a code snippet of java which invokes Sun IDM workflows.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pete</title>
		<link>http://www.topicobserver.com/blog/tools/sun-idm/2009/executing-sun-idm-xpress-rules-from-java/comment-page-1/#comment-6882</link>
		<dc:creator>pete</dc:creator>
		<pubDate>Mon, 22 Feb 2010 18:46:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.topicobserver.com/blog/?p=382#comment-6882</guid>
		<description>are you sure that new code is correct? GenericObject args does not have a &quot;put&quot;. do you mean to name it something else? and then add it to the args Map? as follows:
GenericObject go=null;
go=_wsSess.getView(“UserViewer:”+runAsUser, options);
args.put(&quot;context&quot;,go);

?</description>
		<content:encoded><![CDATA[<p>are you sure that new code is correct? GenericObject args does not have a &#8220;put&#8221;. do you mean to name it something else? and then add it to the args Map? as follows:<br />
GenericObject go=null;<br />
go=_wsSess.getView(“UserViewer:”+runAsUser, options);<br />
args.put(&#8220;context&#8221;,go);</p>
<p>?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: D Prabhagar</title>
		<link>http://www.topicobserver.com/blog/tools/sun-idm/2009/executing-sun-idm-xpress-rules-from-java/comment-page-1/#comment-5556</link>
		<dc:creator>D Prabhagar</dc:creator>
		<pubDate>Sun, 13 Sep 2009 10:55:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.topicobserver.com/blog/?p=382#comment-5556</guid>
		<description>Hi,
No bug in Xpress, I can resolve your first issue by using following code snippets..

GenericObject args = null;

        Map options = new HashMap();
        options.put(UserViewConstants.OP_NO_FETCH, &quot;true&quot;);
        args = _wsSess.getView(&quot;UserViewer:&quot;+runAsUser, options);
        // then add the lighthouse context so the rule writer can invoke
        // methods that require it (e.g. getResourceObjects, etc.)
        if (args != null) {
            args.put(&quot;context&quot;, _wsSess);
        }

Thanks
DP</description>
		<content:encoded><![CDATA[<p>Hi,<br />
No bug in Xpress, I can resolve your first issue by using following code snippets..</p>
<p>GenericObject args = null;</p>
<p>        Map options = new HashMap();<br />
        options.put(UserViewConstants.OP_NO_FETCH, &#8220;true&#8221;);<br />
        args = _wsSess.getView(&#8220;UserViewer:&#8221;+runAsUser, options);<br />
        // then add the lighthouse context so the rule writer can invoke<br />
        // methods that require it (e.g. getResourceObjects, etc.)<br />
        if (args != null) {<br />
            args.put(&#8220;context&#8221;, _wsSess);<br />
        }</p>
<p>Thanks<br />
DP</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Benbbh</title>
		<link>http://www.topicobserver.com/blog/tools/sun-idm/2009/executing-sun-idm-xpress-rules-from-java/comment-page-1/#comment-4064</link>
		<dc:creator>Benbbh</dc:creator>
		<pubDate>Tue, 21 Jul 2009 14:02:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.topicobserver.com/blog/?p=382#comment-4064</guid>
		<description>Hi,

Thanks for this, but I think I found 2 problems using this.


1) Looks like it bugs when you have that kind of code inside your rule to get the session:

  :display.session
  context
  
    WF_CONTEXT
  
  



2) Looks like it bugs when the rule is between  tags:

 Let&#039;s create a simple rule such as:

      (&#124;)

With that previous rule, no problem, but as soon as I need to use 



  
    
      (&#124;)
    
    myVar
  


I only get null as a result.

Any idea on how to avoid those 2 issues ?

Thanks,

Ben</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Thanks for this, but I think I found 2 problems using this.</p>
<p>1) Looks like it bugs when you have that kind of code inside your rule to get the session:</p>
<p>  :display.session<br />
  context</p>
<p>    WF_CONTEXT</p>
<p>2) Looks like it bugs when the rule is between  tags:</p>
<p> Let&#8217;s create a simple rule such as:</p>
<p>      (|)</p>
<p>With that previous rule, no problem, but as soon as I need to use </p>
<p>      (|)</p>
<p>    myVar</p>
<p>I only get null as a result.</p>
<p>Any idea on how to avoid those 2 issues ?</p>
<p>Thanks,</p>
<p>Ben</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pete</title>
		<link>http://www.topicobserver.com/blog/tools/sun-idm/2009/executing-sun-idm-xpress-rules-from-java/comment-page-1/#comment-3875</link>
		<dc:creator>pete</dc:creator>
		<pubDate>Thu, 18 Jun 2009 12:39:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.topicobserver.com/blog/?p=382#comment-3875</guid>
		<description>i&#039;m new to junit and idm, but junit sucks
how to pass in or run many data points into simple rule execution?
@parameterized seems to only take in 1 arg</description>
		<content:encoded><![CDATA[<p>i&#8217;m new to junit and idm, but junit sucks<br />
how to pass in or run many data points into simple rule execution?<br />
@parameterized seems to only take in 1 arg</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Trond</title>
		<link>http://www.topicobserver.com/blog/tools/sun-idm/2009/executing-sun-idm-xpress-rules-from-java/comment-page-1/#comment-3716</link>
		<dc:creator>Trond</dc:creator>
		<pubDate>Fri, 22 May 2009 13:49:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.topicobserver.com/blog/?p=382#comment-3716</guid>
		<description>com.waveset.session.Session implements LighthouseContext, which is an interface, so yes, it works.

I see that I had forgotten an import declaration in the 2nd code snippet, though (com.waveset.session.Session).</description>
		<content:encoded><![CDATA[<p>com.waveset.session.Session implements LighthouseContext, which is an interface, so yes, it works.</p>
<p>I see that I had forgotten an import declaration in the 2nd code snippet, though (com.waveset.session.Session).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pete</title>
		<link>http://www.topicobserver.com/blog/tools/sun-idm/2009/executing-sun-idm-xpress-rules-from-java/comment-page-1/#comment-3700</link>
		<dc:creator>pete</dc:creator>
		<pubDate>Wed, 20 May 2009 13:42:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.topicobserver.com/blog/?p=382#comment-3700</guid>
		<description>Does this really work? line 20 is passing in a Session object to XpressUtil.executeRule, which is looking for a LighthouseContext object.
Is there some code you have not posted?
Thanks</description>
		<content:encoded><![CDATA[<p>Does this really work? line 20 is passing in a Session object to XpressUtil.executeRule, which is looking for a LighthouseContext object.<br />
Is there some code you have not posted?<br />
Thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>
