[JBoss jBPM] - "org.jbpm.graph.def.DelegationException"
by manjula_athani
Hi All,
I'm invoking an ActionHandler on some event (node-enter), but it is giving
this exception : "org.jbpm.graph.def.DelegationException".
Here I'm giving code for action handler class and processdefinition.xml
MyAction.java
__________
| package Hello4;
|
| import org.jbpm.context.exe.ContextInstance;
| import org.jbpm.graph.def.ActionHandler;
| import org.jbpm.graph.def.ProcessDefinition;
| import org.jbpm.graph.exe.ExecutionContext;
| import org.jbpm.graph.exe.ProcessInstance;
|
|
| public class MyAction implements ActionHandler {
| private static final long serialVersionUID = 1L;
|
| public void execute(ExecutionContext executionContext) throws Exception {
| // TODO Auto-generated method stub
| ProcessDefinition processDefinition = ProcessDefinition.parseXmlString("processdefinition.xml");
|
| ProcessInstance processInstance = new ProcessInstance(processDefinition);
|
| ContextInstance contextInstance = processInstance.getContextInstance();
|
|
| String sum="test";
|
| contextInstance.setVariable("sum",sum);
|
| }
|
| }
|
__________
processdefinition.xml
________________
| <process-definition xmlns="" name="Hello4">
|
| <start-state name="start">
| <event type='node-leave'>
| <action class='MyAction' />
| </event>
| </start-state>
|
| <end-state name="end1">
| </end-state>
|
| </process-definition>
|
___________
Thanks & Regards
Manjula
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4130268#4130268
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4130268
18 years, 2 months
[JBoss jBPM] - How to access variable of 'Element' type, Element being comp
by meghanai_99
Hello,
I have been trying to deploy a BPEL process that extracts number value from a variable declared as ElementType. The defintion of the element is
| <xs:element name="parent">
| <xs:complexType>
| <xs:sequence>
| <xs:element name="child" type="xs:string" />
| </xs:sequence>
| </xs:complexType>
| </xs:element>
|
The variable declaration for this element is
| <variable name="parent" element="tns:parent" />
|
The expression I want to evaluate is something like this -
| <assign name="Calculate2">
| <copy>
| <from expression="bpws:getVariableData('parent', ?, '/tns:parent/tns:child)" />
| <to part="parameters" query="/ns8:UpdateItem/ns8:item/ns8:title" variable="aewebservices70_UpdateItem-UpdateItem" />
| </copy>
| </assign>
|
The reason I have provided '?' is there is no part name. I know you can directly write 'variable' and 'query' attributes but what if I want to use operator on that query e.g
| number(/tns:parent/tns:child) div SomeOtherParent/SomeOtherChild
|
How does the BPEL look in that case? Assuming 'SomeOtherParent' is another element declared as complex type? I am using BPEL 1.1 specification.
Thanks,
Meghana
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4130267#4130267
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4130267
18 years, 2 months
[Beginners Corner] - The Interested Idea of Java Web Hosting
by Kevinul
Greetings,
I'm Kevin, and I'm interested in to knowing if what would a I need to be able to have a hosting service such as the popular PHP/MySQL people.
Are there any client panels out there such as the ever so popular PHP client panel, cPanel? Also, what is all of the other software such as a Portlet, and other software I don't know. I come from the PHP community as I was introduced to the web that way, but as always, I'm different and hope developing through JSP can be a very nice experience and a nice skill to have. Please, feed me your knowledge. :)
Regards,
Kevin K. (a.k.a. Kevinul)
P.S. Another thought, would PHP/MySQL customers be able to migrate to JSP/MySQL?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4130255#4130255
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4130255
18 years, 2 months
[JCA/JBoss] - Re: issues with JCA minimum connections
by tvbinh
Hi Vicky,
I don't have any problem with my <connection-factory-impl> class. It works nicely, I got all the properties that I want.
The problem is with JBoss loading the number of minimum connections as declared in -ds.xml file
<connection-factories>
| <no-tx-connection-factory>
| <jndi-name>SimplewireDS</jndi-name>
| <rar-name>65-mitto-ra-smpp.rar</rar-name>
| <connection-definition>
| com.smsc.mitto.ra.smpp.SMPPConnectionFactory
| </connection-definition>
| <config-property name="Name" type="java.lang.String">Mitto-1</config-property>
| <config-property name="Server" type="java.lang.String">192.168.2.115</config-property>
| <config-property name="Port" type="java.lang.Integer">9999</config-property>
| <config-property name="Username" type="java.lang.String">binh</config-property>
| <config-property name="Password" type="java.lang.String">binh</config-property>
| <min-pool-size>2</min-pool-size>
| <max-pool-size>4</max-pool-size>
| <idle-timeout-minutes>525600</idle-timeout-minutes> <!-- if idle for a year reconnect... -->
| <blocking-timeout-millis>100</blocking-timeout-millis>
| <prefill>true</prefill>
| </no-tx-connection-factory>
| </connection-factories>
With the above xml, I expect JBoss to automatically create 2 fully functional connections to 192.168.2.115 for me using other connection request infor provided. Though, when I try to use these 2 connections, I always got null pointer exception.
I debuged through JBoss codes and found that JBoss does not make use of the connection request information also declared in the -ds.xml like server, port, username, password etc, when it tries to create connections to satisfy this minumum connection properties (it does load the property in) .... The problem lies in the fillToMin method of InternalManagedConnectionPool class of JBoss, where it uses null for ConnectionRequestInfo when trying to make the connections. Could you please check that for me ?
Thank you very much for your help,
Best regards,
Binh
----------
defaultCRI is null in the below codes
public void fillToMin() {
| while (true) {
| // Get a permit - avoids a race when the pool is nearly full
| // Also avoids unnessary fill checking when all connections are
| // checked out
| try {
| if (permits.attempt(poolParams.blockingTimeout)) {
| try {
| if (shutdown.get())
| return;
|
| // We already have enough connections
| if (getMinSize()
| - connectionCounter.getGuaranteedCount() <= 0)
| return;
|
| // Create a connection to fill the pool
| try {
| ConnectionListener cl = createConnectionEventListener(
| defaultSubject, defaultCri);
| synchronized (cls) {
| if (trace)
| log.trace("Filling pool cl=" + cl);
| cls.add(cl);
| }
| } catch (ResourceException re) {
| log.warn("Unable to fill pool ", re);
| return;
| }
| } finally {
| permits.release();
| }
| }
| } catch (InterruptedException ignored) {
| log.trace("Interrupted while requesting permit in fillToMin");
| }
| }
| }
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4130247#4130247
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4130247
18 years, 2 months