[jBPM] - Getting information from another Database
by Sadiroveski S
Sadiroveski S [https://community.jboss.org/people/sadiroveski] created the discussion
"Getting information from another Database"
To view the discussion, visit: https://community.jboss.org/message/795900#795900
--------------------------------------------------------------
Hello,
I am trying to get information from a Production Database to display them in the form. For example, the employee wants to create a new customer, he will run the process and add a new customer and select the country from a Combo Box (The combo box here is filled in information from the database) then the selected country will be assigned to the process variables.
Conceptually, I am thinking of 2 approaches:
* Getting information from a Production Database (Approach 1):* Specific task will connect to a database to capture all information
* The task will assign the values to the process
* The next Form task will get the information from the Process to present them in the form controls (Example: Combo Box)
This approach will cause to save information to the process in every created process instance. There could be a lot of info, i.e. available counties, available products to sell, registered customers……
* Getting information from a Production database (Approach 2):* Customize the form controls to access the database to read the information and put them in Form controls.
* There is no need to create a task to connect to the database and save all information on the process variables or even task variables.
This approach could not be implemented since the form is built using Freemarker(FTL Files) which is not like JSP where we can’t mix code with HTML. Is there a way to create an object and read from it using FTL?
Regards,
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/795900#795900]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 2 months
[Performance Tuning] - Servers swapping memory
by Suchit Khobarekar
Suchit Khobarekar [https://community.jboss.org/people/SuchitKhobarekar] created the discussion
"Servers swapping memory"
To view the discussion, visit: https://community.jboss.org/message/795421#795421
--------------------------------------------------------------
Hi,
We have configured Liferay servers on JBoss AS 7.1.1. We have two environments Stage and Prod which are pretty much identical in terms of the hardware and software. However we are seeing some heavy swapping happening on the Prod servers. About a few hours after the servers are started they start swapping memory and this is how it read (as below):
Memory Used Total Percentage
============================
Physical 4079M 7872M 51%
Actual 3630M 7872M 46%
Swap 878M 2047M 42%
This is not a good sign for us. The JAVA_OPTS setting in standalone.conf is as below
JAVA_OPTS="$JAVA_OPTS -Dfile.encoding=UTF-8 -Djava.net.preferIPv4Stack=true -Duser.timezone=GMT -server -XX:NewSize=700m -XX:MaxNewSize=700m -Xms2048m -Xmx4096m -XX:MaxPermSize=1536m -XX:SurvivorRatio=6 -XX:TargetSurvivorRatio=90 -XX:MaxTenuringThreshold=15 -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:ParallelGCThreads=16 -XX:+CMSCompactWhenClearAllSoftRefs -XX:CMSInitiatingOccupancyFraction=85 -XX:+CMSScavengeBeforeRemark -XX:+CMSConcurrentMTEnabled -XX:ParallelCMSThreads=2"
There are 2 nodes with 8 GB of RAM each
I found a thread which mentioned that the -Xms and -Xmx should ideally have the same values. This is the thread https://community.jboss.org/message/221207#221207 https://community.jboss.org/message/221207
Any help on this is really appreciated. I
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/795421#795421]
Start a new discussion in Performance Tuning at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 2 months
[jBPM] - Perform DB operations from Workflow
by pns
pns [https://community.jboss.org/people/pns] created the discussion
"Perform DB operations from Workflow"
To view the discussion, visit: https://community.jboss.org/message/795770#795770
--------------------------------------------------------------
We have implemented JBPM Workflow in our application and is integrated with Spring MVC. Now we are planning to handle all the Workflow related DB operations from within the Workflow. We thought of two options.
1) Define Script Task for invoking the DAO class to do the DB operations from the Workflow
2) Define custom Service Task and invoke the DAO from the WorkItemHandler corresponding to the Service Task.
We would like to get the opinion on this design approach to keep the Workflow related DB operations inside the Workflow, and also on the above two options. Which would be the right approach?
If we go with the second one of having a Service Task, then we need to generalize the WorkItemHandler to be used in many situations, which would be slightly tricky.
We would like to get the suggestion from JBPM experts.
Thanks in advance...
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/795770#795770]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 2 months