Discussion:
[jboss-user] [jBPM] - Task cannot have more than one incoming connection?
Taoufik Gharbi
2013-01-14 12:57:35 UTC
Permalink
Taoufik Gharbi [https://community.jboss.org/people/gtn66] created the discussion

"Task cannot have more than one incoming connection?"

To view the discussion, visit: https://community.jboss.org/message/791560#791560

--------------------------------------------------------------
Hi Everybody,

I'm jBPM-newbie and i need some help.

I have installed jbpm-5.4.0.Final using the full installer. After starting the eclipse (with ant start.demo)  I have created a new jBPM project and modelled a new Process using BPMN2 Modeler.

After process validation i get the following error: "This type of node cannot have more than one incoming connection".

I know that the same problem has been solved see https://issues.jboss.org/browse/JBPM-3586 https://issues.jboss.org/browse/JBPM-3586.

But my question is: where to set the system property (-Djbpm.enable.multi.con=true)   concretely?

I don't know how to do that


Thanks in Advance for any answer.

PS: I hope that I'm in the right dicussion forum to ask such question.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/791560#791560]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
doboss
2013-01-14 14:38:54 UTC
Permalink
doboss [https://community.jboss.org/people/doboss] created the discussion

"Re: Task cannot have more than one incoming connection?"

To view the discussion, visit: https://community.jboss.org/message/791598#791598

--------------------------------------------------------------
You would set any system properties like that in the standalone.conf or alternatively in the standalone.sh/bat files or potentially on the command line. You basically need to pass that argument to java itself. You can also do it via command line into the runtime system.

Here are a couple of posts:
http://javahowto.blogspot.com/2012/09/how-to-add-system-properties-to-jboss.html http://javahowto.blogspot.com/2012/09/how-to-add-system-properties-to-jboss.html
https://community.jboss.org/thread/197273 https://community.jboss.org/thread/197273

HTH
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/791598#791598]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Taoufik Gharbi
2013-01-14 15:34:26 UTC
Permalink
Taoufik Gharbi [https://community.jboss.org/people/gtn66] created the discussion

"Re: Task cannot have more than one incoming connection?"

To view the discussion, visit: https://community.jboss.org/message/791624#791624

--------------------------------------------------------------
@doboss: First, thanks for the answer.

I have  done what you have suggested but without success. The error still occurs.

I have simply added the following line at the end of standalone.conf: JAVA_OPTS="$JAVA_OPTS -Djbpm.enable.multi.con=true".

Could somebody help me?

by the way: I have attached my bpmn file representing my process, what i want to model.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/791624#791624]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
doboss
2013-01-14 15:44:10 UTC
Permalink
doboss [https://community.jboss.org/people/doboss] created the discussion

"Re: Task cannot have more than one incoming connection?"

To view the discussion, visit: https://community.jboss.org/message/791632#791632

--------------------------------------------------------------
Keep in mind, I don't know about the original problem, just how to define system properties. ;) I will try to have a look in more detail later. :)
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/791632#791632]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Maciej Swiderski
2013-01-14 17:33:50 UTC
Permalink
Maciej Swiderski [https://community.jboss.org/people/swiderski.maciej] created the discussion

"Re: Task cannot have more than one incoming connection?"

To view the discussion, visit: https://community.jboss.org/message/791661#791661

--------------------------------------------------------------
you can do that in couple of ways, and two of them follows:
1. if you use ant to start the demo environment you could edit build.xml and find target: start.jboss7 and there you find <arg> tags that you can use to define that system property
2. configure system properties inside JBoss AS7 standalone.xml according to these https://community.jboss.org/docs/DOC-17157 documentation

HTH
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/791661#791661]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Taoufik Gharbi
2013-01-15 07:23:53 UTC
Permalink
Taoufik Gharbi [https://community.jboss.org/people/gtn66] created the discussion

"Re: Task cannot have more than one incoming connection?"

To view the discussion, visit: https://community.jboss.org/message/791908#791908

--------------------------------------------------------------
@Maciej: Thanks for the answer.

As you mentioned I've added the system property successively first in Build.xml then in standalone.xml but without success. The error still occurs.

I'm now clueless and i still need help.

Thanks again in advance for any answer.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/791908#791908]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Taoufik Gharbi
2013-01-15 08:03:56 UTC
Permalink
Taoufik Gharbi [https://community.jboss.org/people/gtn66] created the discussion

"Re: Task cannot have more than one incoming connection?"

To view the discussion, visit: https://community.jboss.org/message/791916#791916

--------------------------------------------------------------
Now I have simplified my process (instead of many incoming connection i use a gateway).

The error "This type of node cannot have more than one incoming connection" does NOT occur anymore. :)


Now I'm still fighting with another error, which is the following:

    ERROR builder.impl.KnowledgeBuilderImpl.newKnowledgeBase  - ProcessLoadError: unable to parse xml : Exception class java.lang.NullPointerException : null

Could somebody give me a quick hint?
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/791916#791916]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Taoufik Gharbi
2013-01-15 09:59:50 UTC
Permalink
Taoufik Gharbi [https://community.jboss.org/people/gtn66] created the discussion

"Re: Task cannot have more than one incoming connection?"

To view the discussion, visit: https://community.jboss.org/message/791943#791943

--------------------------------------------------------------
Now I have solved the problem with java.lang.NullPointerException happened in at org.jbpm.ruleflow.core.validation.RuleFlowProcessValidator.validateNodes(RuleFlowProcessValidator.java:193)

Diverging gateways should have constraints. For further information see the following  documentation (chapter 6.8.2 constraints) http://docs.jboss.org/jbpm/v5.4/userguide/ch.core-basics.html#d0e2175
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/791943#791943]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
Loading...