[jBPM] - Difficult workflow question
by John Bize
John Bize [https://community.jboss.org/people/jbize] created the discussion
"Difficult workflow question"
To view the discussion, visit: https://community.jboss.org/message/727034#727034
--------------------------------------------------------------
I am attempting to handle what to me is a difficult workflow problem. I believe a good metaphore for this process is: "Who's got the button?" There are multiple buttons with different descriptions. There are several working teams that may have the button, but it's possible that no one has it.
So, a user connects to our system and submits a form asking "who's got the button?" The form can describe the button by composition (plastic, bone, etc.), color, size, age, etc. (The user does his best to add enough detail.) Since there aren't too many buttons, sometimes just composition or age is sufficient for identification, but sometimes not. So, the request first goes to the user's supervisor (group) to validate that the request is valid and sufficient in detail (Human Task 1). The supervisor may reject the request for a number of reasons or approve it. If approved, an email is sent to all the teams (currently only 2) that might currently have the button. Here I split the workflow to two more human tasks. (I actually put these in an embedded sub-process.) For each of these team requests (human tasks), the response may be: "*Not Me*," "*Need Additional Info* (e.g. color)", or "*Yes I have it*." I recombined the workflow, but the answers are relevant to how the workflow procedes: If both answer "No," (happy path) the supervisor is notified, and the process completes. If neither answer "Yes," but at least one asks for additional information, the request is pushed back to the previous step. However, if one team answers "Yes," the process must complete and the other pending human task(s) must be cancelled (or completed) and the supervisor must be notified immediately and the process ends.
I hasven't even decided the best way to handle the "need more info" results. For right now, I need to know the correct way to cleanly end the other pending human tasks once one answers "yes."
I have tried quite a few different things such as events and errors, but nothing seems correct.
Any and all help is sincerely appreciated.
I'll resummarize the flow (code and image are not available):
* User submits request (start process)
* Supervisor approves or rejects (HT-1) (followed by xor gateway for decision flow)
* Diverge Gateway (AND)
* Simultaneously ask Team 1 and 2 (HT-2 & HT-3)
* Converge Gateway (AND) if results are No or Need More Info
* *BUT if either HT response is Yes, other HT is immediately ended (cancelled or stopped), and the process continues*
* Supervisor receives notification for subsequent action (HT-4)
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/727034#727034]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 7 months
[Beginner's Corner] - Re: Configuring JBoss server address
by Tan Mariani
Tan Mariani [https://community.jboss.org/people/mariani] created the discussion
"Re: Configuring JBoss server address"
To view the discussion, visit: https://community.jboss.org/message/732558#732558
--------------------------------------------------------------
I dont really understand what you mean....
As far as I know you can bind jboss to ip address in 3 ways : (I assume you use standalone)
1. run standalone with parameter -b ipadress
./standalone.sh -b 192.168.6.100
2. change your standalone.xml
<interfaces>
<interface name="management">
<!--<inet-address value="${jboss.bind.address.management:127.0.0.1}"/>-->
<inet-address value="192.168.6.100"/>
</interface>
<interface name="public">
<!--<inet-address value="${jboss.bind.address:127.0.0.1}"/>-->
<inet-address value="192.168.6.100"/>
</interface>
</interfaces>
but this way is not to recommended
3. add following lines in the configuration file in bin/standalone.conf property file
JAVA_OPTS="$JAVA_OPTS -Djboss.bind.address.management=192.168.6.100"
JAVA_OPTS="$JAVA_OPTS -Djboss.bind.address=192.168.6.100"
When you run standalone, there should be a line like the following on the console. What IP address is given on your output?
07:24:53,491 INFO [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-2) Starting Coyote HTTP/1.1 on http--192.168.6.100-8080
Hope this can help you....
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/732558#732558]
Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 7 months
[Datasource Configuration] - url-delimiter not recognized in ha-local-tx-datasource??
by Julian Kiper
Julian Kiper [https://community.jboss.org/people/jkiper] created the discussion
"url-delimiter not recognized in ha-local-tx-datasource??"
To view the discussion, visit: https://community.jboss.org/message/732544#732544
--------------------------------------------------------------
Hi, I've this DS in JBOSS 4.3:
<?xml version="1.0" encoding="UTF-8"?>
<datasources>
<ha-local-tx-datasource>
<jndi-name>defaultDST</jndi-name>
<driver-class>com.ibm.db2.jcc.DB2Driver</driver-class>
<connection-url>jdbc:db2://10.0.0.10:60000/DBHADR1|jdbc:db2://10.0.0.20:60000/DBHADR2</connection-url>
<url-delimiter>|</url-delimiter>
<user-name>user</user-name>
<password>pass</password>
<connection-property name="currentSchema">DBHADR1</connection-property>
<connection-property name="retryIntervalClientReroute">2</connection-property>
<connection-property name="maxRetriesForClientReroute">10</connection-property>
<connection-property name="enableClientAffinitiesList">1</connection-property>
<min-pool-size>20</min-pool-size>
<max-pool-size>200</max-pool-size>
<prepared-statement-cache-size>1000</prepared-statement-cache-size>
<check-valid-connection-sql>SELECT CURRENT TIMESTAMP FROM SYSIBM.SYSDUMMY1 for read only</check-valid-connection-sql>
<idle-timeout-minutes>15</idle-timeout-minutes>
<metadata>
<type-mapping>DB2</type-mapping>
</metadata>
</ha-local-tx-datasource>
</datasources>
When trying to connect to the database, I'm receiving an error like if JBOSS is not detecting the URL delimiter as it reclaims for the whole string in connection-url....
Any help would be appreciated!!!
Thanks in advance.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/732544#732544]
Start a new discussion in Datasource Configuration at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 7 months