[jboss-user] [jBPM] New message: "Re: Custom Activity"

Sam Manning do-not-reply at jboss.com
Fri Feb 26 14:18:25 EST 2010


User development,

A new message was posted in the thread "Custom Activity":

http://community.jboss.org/message/528865#528865

Author  : Sam Manning
Profile : http://community.jboss.org/people/dondragon2

Message:
--------------------------------------------------------------
<custom name="print dots" class="com.test.process.Prompt">
        <property name="properties">
            <object  class="java.util.HashMap">
                <map>
                    <entry>
                        <key>
                            <string value="testprop" />
                        </key>
                        <value>
                            <string value="test" />
                        </value>
                    </entry>
                </map>
            </object>
        </property>
        <transition to="end" />
    </custom>
 
public class Prompt implements ActivityBehaviour{
 
    HashMap properties = new HashMap();
 
    public void execute(ActivityExecution ae) throws Exception {
        System.out.println(properties.get("testprop")+"------>");
    }
 
    public HashMap getProperties() {
        return properties;
    }
 
    public void setProperties(HashMap properties) {
        this.properties = properties;
    }
 
}

--------------------------------------------------------------

To reply to this message visit the message page: http://community.jboss.org/message/528865#528865




More information about the jboss-user mailing list