[JBoss jBPM] - Re: process image display highlights wrong end node if task
by dleerob
AFAIK, If a task that has more than one transition ends, and you havent specified which transition to take, (eg: taskInstance.end("MyTransition");), the default transition will be taken, and that default is the first transition defined in the processdefinition.xml.
So it sounds like the task instance isn't being ended correctly, or is not being ended with a transition name.
Why it's doing this, is anyones guess, unless we can see what you are doing. Perhaps you should post the code that you use to end the task, so we can take a look, or create a unit test to display the behaviour, then im sure someone can help you.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095133#4095133
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095133
18Â years, 9Â months
[JBossWS] - Re: soap message not correct?
by jtestori
tested with 1.2.1 and 2.0.1. then i deployed jbossws-2.0.1, same problem.
strange thing is that it works when i use the generated classes it in a simple main-class without jboss, so i guess there must be a classpath-problem. but i don't deploy any webservice-related jar-file together with my application.
maybe the generated source code can help:
| package com.shark.ewob.services.approveactivity;
|
| import javax.jws.WebMethod;
| import javax.jws.WebParam;
| import javax.jws.WebResult;
| import javax.jws.WebService;
| import javax.jws.soap.SOAPBinding;
|
|
| /**
| * This class was generated by the JAX-WS RI.
| * JAX-WS RI 2.1.1-b03-
| * Generated source version: 2.0
| *
| */
| @WebService(name = "ApproveActivity", targetNamespace = "http://xmlns.oracle.com/ApproveActivity")
| @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
| public interface ApproveActivity {
|
|
| /**
| *
| * @param payload
| * @return
| * returns com.shark.ewob.services.approveactivity.ApproveActivityOUT
| */
| @WebMethod(action = "process")
| @WebResult(name = "ApproveActivityOUT", targetNamespace = "http://www.example.org", partName = "payload")
| public ApproveActivityOUT process(
| @WebParam(name = "ApproveActivityIN", targetNamespace = "http://www.example.org", partName = "payload")
| ApproveActivityIN payload);
|
| }
|
|
| package com.shark.ewob.services.approveactivity;
|
| import java.net.MalformedURLException;
| import java.net.URL;
| import javax.xml.namespace.QName;
| import javax.xml.ws.Service;
| import javax.xml.ws.WebEndpoint;
| import javax.xml.ws.WebServiceClient;
|
|
| /**
| * This class was generated by the JAX-WS RI.
| * JAX-WS RI 2.1.1-b03-
| * Generated source version: 2.0
| *
| */
| @WebServiceClient(name = "ApproveActivity", targetNamespace = "http://xmlns.oracle.com/ApproveActivity", wsdlLocation = "http://localhost:8888/orabpel/default/ApproveActivity/1.0/ApproveActivity...")
| public class ApproveActivity_Service
| extends Service
| {
|
| private final static URL APPROVEACTIVITY_WSDL_LOCATION;
|
| static {
| URL url = null;
| try {
| url = new URL("http://localhost:8888/orabpel/default/ApproveActivity/1.0/ApproveActivity...");
| } catch (MalformedURLException e) {
| e.printStackTrace();
| }
| APPROVEACTIVITY_WSDL_LOCATION = url;
| }
|
| public ApproveActivity_Service(URL wsdlLocation, QName serviceName) {
| super(wsdlLocation, serviceName);
| }
|
| public ApproveActivity_Service() {
| super(APPROVEACTIVITY_WSDL_LOCATION, new QName("http://xmlns.oracle.com/ApproveActivity", "ApproveActivity"));
| }
|
| /**
| *
| * @return
| * returns ApproveActivity
| */
| @WebEndpoint(name = "ApproveActivityPort")
| public ApproveActivity getApproveActivityPort() {
| return (ApproveActivity)super.getPort(new QName("http://xmlns.oracle.com/ApproveActivity", "ApproveActivityPort"), ApproveActivity.class);
| }
|
| }
|
| package com.shark.ewob.services.approveactivity;
|
| import javax.xml.bind.annotation.XmlAccessType;
| import javax.xml.bind.annotation.XmlAccessorType;
| import javax.xml.bind.annotation.XmlElement;
| import javax.xml.bind.annotation.XmlRootElement;
| import javax.xml.bind.annotation.XmlType;
|
|
| /**
| * <p>Java class for anonymous complex type.
| *
| * <p>The following schema fragment specifies the expected content contained within this class.
| *
| * <pre>
| * <complexType>
| * <complexContent>
| * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
| * <sequence>
| * <element name="activityId">
| * <simpleType>
| * <restriction base="{http://www.w3.org/2001/XMLSchema}int">
| * <minInclusive value="0"/>
| * </restriction>
| * </simpleType>
| * </element>
| * <element name="action">
| * <simpleType>
| * <restriction base="{http://www.w3.org/2001/XMLSchema}string">
| * <enumeration value="approve"/>
| * <enumeration value="reject"/>
| * </restriction>
| * </simpleType>
| * </element>
| * <element name="approverId">
| * <simpleType>
| * <restriction base="{http://www.w3.org/2001/XMLSchema}int">
| * <minExclusive value="0"/>
| * </restriction>
| * </simpleType>
| * </element>
| * <element name="comment">
| * <simpleType>
| * <restriction base="{http://www.w3.org/2001/XMLSchema}string">
| * <maxLength value="255"/>
| * </restriction>
| * </simpleType>
| * </element>
| * </sequence>
| * </restriction>
| * </complexContent>
| * </complexType>
| * </pre>
| *
| *
| */
| @XmlAccessorType(XmlAccessType.FIELD)
| @XmlType(name = "", propOrder = {
| "activityId",
| "action",
| "approverId",
| "comment"
| })
| @XmlRootElement(name = "ApproveActivityIN")
| public class ApproveActivityIN {
|
| protected int activityId;
| @XmlElement(required = true)
| protected String action;
| protected int approverId;
| @XmlElement(required = true)
| protected String comment;
|
| /**
| * Gets the value of the activityId property.
| *
| */
| public int getActivityId() {
| return activityId;
| }
|
| /**
| * Sets the value of the activityId property.
| *
| */
| public void setActivityId(int value) {
| this.activityId = value;
| }
|
| /**
| * Gets the value of the action property.
| *
| * @return
| * possible object is
| * {@link String }
| *
| */
| public String getAction() {
| return action;
| }
|
| /**
| * Sets the value of the action property.
| *
| * @param value
| * allowed object is
| * {@link String }
| *
| */
| public void setAction(String value) {
| this.action = value;
| }
|
| /**
| * Gets the value of the approverId property.
| *
| */
| public int getApproverId() {
| return approverId;
| }
|
| /**
| * Sets the value of the approverId property.
| *
| */
| public void setApproverId(int value) {
| this.approverId = value;
| }
|
| /**
| * Gets the value of the comment property.
| *
| * @return
| * possible object is
| * {@link String }
| *
| */
| public String getComment() {
| return comment;
| }
|
| /**
| * Sets the value of the comment property.
| *
| * @param value
| * allowed object is
| * {@link String }
| *
| */
| public void setComment(String value) {
| this.comment = value;
| }
|
| }
|
| package com.shark.ewob.services.approveactivity;
|
| import javax.xml.bind.annotation.XmlAccessType;
| import javax.xml.bind.annotation.XmlAccessorType;
| import javax.xml.bind.annotation.XmlElement;
| import javax.xml.bind.annotation.XmlRootElement;
| import javax.xml.bind.annotation.XmlType;
|
|
| /**
| * <p>Java class for anonymous complex type.
| *
| * <p>The following schema fragment specifies the expected content contained within this class.
| *
| * <pre>
| * <complexType>
| * <complexContent>
| * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
| * <sequence>
| * <element name="result">
| * <simpleType>
| * <restriction base="{http://www.w3.org/2001/XMLSchema}string">
| * <enumeration value="success"/>
| * <enumeration value="error"/>
| * </restriction>
| * </simpleType>
| * </element>
| * <element name="message" type="{http://www.w3.org/2001/XMLSchema}string"/>
| * </sequence>
| * </restriction>
| * </complexContent>
| * </complexType>
| * </pre>
| *
| *
| */
| @XmlAccessorType(XmlAccessType.FIELD)
| @XmlType(name = "", propOrder = {
| "result",
| "message"
| })
| @XmlRootElement(name = "ApproveActivityOUT")
| public class ApproveActivityOUT {
|
| @XmlElement(required = true)
| protected String result;
| @XmlElement(required = true, nillable = true)
| protected String message;
|
| /**
| * Gets the value of the result property.
| *
| * @return
| * possible object is
| * {@link String }
| *
| */
| public String getResult() {
| return result;
| }
|
| /**
| * Sets the value of the result property.
| *
| * @param value
| * allowed object is
| * {@link String }
| *
| */
| public void setResult(String value) {
| this.result = value;
| }
|
| /**
| * Gets the value of the message property.
| *
| * @return
| * possible object is
| * {@link String }
| *
| */
| public String getMessage() {
| return message;
| }
|
| /**
| * Sets the value of the message property.
| *
| * @param value
| * allowed object is
| * {@link String }
| *
| */
| public void setMessage(String value) {
| this.message = value;
| }
|
| }
|
|
| package com.shark.ewob.services.approveactivity;
|
| import javax.xml.bind.annotation.XmlRegistry;
|
|
| /**
| * This object contains factory methods for each
| * Java content interface and Java element interface
| * generated in the com.shark.ewob.services.approveactivity package.
| * <p>An ObjectFactory allows you to programatically
| * construct new instances of the Java representation
| * for XML content. The Java representation of XML
| * content can consist of schema derived interfaces
| * and classes representing the binding of schema
| * type definitions, element declarations and model
| * groups. Factory methods for each of these are
| * provided in this class.
| *
| */
| @XmlRegistry
| public class ObjectFactory {
|
|
| /**
| * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: com.shark.ewob.services.approveactivity
| *
| */
| public ObjectFactory() {
| }
|
| /**
| * Create an instance of {@link ApproveActivityOUT }
| *
| */
| public ApproveActivityOUT createApproveActivityOUT() {
| return new ApproveActivityOUT();
| }
|
| /**
| * Create an instance of {@link ApproveActivityIN }
| *
| */
| public ApproveActivityIN createApproveActivityIN() {
| return new ApproveActivityIN();
| }
|
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095130#4095130
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095130
18Â years, 9Â months
[JBoss jBPM] - Re: problem to enter into jbpm-console application
by galvino
ok, i should give more information, sorry,
so i am using :
jbpm-jpdl3.2.2
oracle9i
i configure oracle :
i changed : login-config
standardjaws
in login-config.xml, i added this code :
| <application-policy name = "OracleDbRealm?">
| <authentication>
| <login-module code = "org.jboss.resource.security.ConfiguredIdentityLoginModule?" flag = "required">
| <module-option name = "principal">user</module-option>
| <module-option name = "userName">user</module-option>
| <module-option name ="password">user</module-option>
| <module-option name = "managedConnectionFactoryName">jboss.jca:service=LocalTxCM,name=DefaultDS</module-option>
| </login-module>
| </authentication>
| </application-policy>
|
|
into standardjaws.xml i added
| <type-mapping>Oracle9i</type-mapping>
|
this is my data source:
| <local-tx-datasource>
| <jndi-name>DefaultDS</jndi-name>
| <connection-url>jdbc:oracle:thin:@myserver:1521:myDBinstance</connection-url>
| <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
| <user-name>user</user-name>
| <password>user</password>
| <min-pool-size>1</min-pool-size>
| <max-pool-size>5</max-pool-size>
| <idle-timeout-minutes>0</idle-timeout-minutes>
| <track-statements/>
| <!--
| <security-domain>OracleDbRealm</security-domain>
| -->
| <prepared-statement-cache-size>32</prepared-statement-cache-size>
| <metadata><type-mapping>Oracle9i</type-mapping></metadata>
| <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>
| </local-tx-datasource>
|
in addition,
i changed hibernate-cfg.xml:
| <!-- JDBC connection properties (begin) -->
| <property name="hibernate.connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
| <property name="hibernate.connection.url">jdbc:oracle:thin:@myserver:1521:myDBinstance</property>
| <property name="hibernate.connection.username">user</property>
| <property name="hibernate.connection.password">user</property>
| <!-- JDBC connection properties (end) -->
|
| <property name="hibernate.cache.provider_class">org.hibernate.cache.HashtableCacheProvider</property>
|
|
and in jbpm-console.war\WEB-INF\classes, i created two file roles.properties and users.properties
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095121#4095121
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095121
18Â years, 9Â months