[jBPM] - getting the task name from ProcessEventListener
by Odelya Holiday
Odelya Holiday [http://community.jboss.org/people/odelyaholiday] created the discussion
"getting the task name from ProcessEventListener"
To view the discussion, visit: http://community.jboss.org/message/592901#592901
--------------------------------------------------------------
Hi!
I am trying to retrieve the human task TaskName property from ProcessEventListener afterNodeTriggered method
public void afterNodeTriggered(ProcessNodeTriggeredEvent event) {
Node node = event.getNodeInstance().getNode();
if (node instanceof HumanTaskNode) {
HumanTaskNode htNode = (HumanTaskNode)node;
String taskName = (String) htNode.getWork().getParameter("TaskName");
}
}
However the taskName returns with the EL expression. For instance: Waiting for #{user.Name}.
The variable user is defined as the process variable.
If I try a similar code in myHumanTaskHanlder (custom one):
public void executeWorkItem(WorkItem workItem, WorkItemManager manager) {
String taskName = (String) workItem.getParameter("TaskName");
}
The taskName returns witout the EL experssion. For insance: Waiting for Rick.
How can I retrieve the taskname property of human task with parsed EL expression?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/592901#592901]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 1 month
[JBoss Cache] - Configure Time interval to persist data in storage
by Deepak A
Deepak A [http://community.jboss.org/people/deeal] created the discussion
"Configure Time interval to persist data in storage"
To view the discussion, visit: http://community.jboss.org/message/592016#592016
--------------------------------------------------------------
Hello
I am using JDBCCacheLoader to persist the data present in cache to DB.
The configuration is:
<cacheloader>
<class>org.jboss.cache.loader.JDBCCacheLoader</class>
<!-- same as the old CacheLoaderConfig attribute -->
<properties>
cache.jdbc.table.name=SCHEMA.JBOSS_CACHE_DATA
cache.jdbc.table.create=false
cache.jdbc.table.drop=false
cache.jdbc.table.primarykey=jbosscache_pk
cache.jdbc.fqn.column=fqn
cache.jdbc.fqn.type=varchar2(3000)
cache.jdbc.node.column=node
cache.jdbc.node.type=blob
cache.jdbc.parent.column=parent
cache.jdbc.datasource=ABC/DB-BASIC
cache.jdbc.sql-concat=concat(1,2)
cache.jdbc.connection.factory=org.jboss.cache.loader.C3p0ConnectionFactory
c3p0.maxPoolSize=20
c3p0.checkoutTimeout=20000
</properties>
<!-- whether the cache loader writes are asynchronous -->
<async>true</async>
<!-- only one cache loader in the chain may set fetchPersistentState
to true. An exception is thrown if more than one cache loader
sets this to true. -->
<fetchPersistentState>true</fetchPersistentState>
<!-- determines whether this cache loader ignores writes - defaults
to false. -->
<ignoreModifications>false</ignoreModifications>
<!-- if set to true, purges the contents of this cache loader when the
cache starts up. Defaults to false. -->
<purgeOnStartup>false</purgeOnStartup>
</cacheloader>
What I observed that on each write to cache will trigger an update query to persist data in DB.
I did quiet research to find out whether I can configure the interval to write to DB, but went in vain....
Is there any way that I can configure this property.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/592016#592016]
Start a new discussion in JBoss Cache at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 1 month
[jBPM] - How to retry blocked node instances
by luka kama
luka kama [http://community.jboss.org/people/lukakama] created the discussion
"How to retry blocked node instances"
To view the discussion, visit: http://community.jboss.org/message/592634#592634
--------------------------------------------------------------
Hi,
I'm trying to embed jBPM 5 inside a standalone application, using a DB for persistence. While testing some processes with a custom work item, i got some runtime exception trying to simulate an asynchronous work item completion. The result is that, now, I have some process stored as in active status with pending work items that i'm trying to resume, but, looking inside API, I can't figure out how to retry the blocked note instance or work item.
Someone know how to resume such processes re-executing active nodes or work items through API?
Thanks,
Luca.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/592634#592634]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 1 month
[JBoss Tools] - JBosstoolsVisualEditorFAQ
by Yahor Radtsevich
Yahor Radtsevich [http://community.jboss.org/people/yradtsevich] modified the document:
"JBosstoolsVisualEditorFAQ"
To view the document, visit: http://community.jboss.org/docs/DOC-10862
--------------------------------------------------------------
*Q: Which platforms are supported by* *Visual Editor?*
*A:* The list of supported platforms (and their IDs):
* Windows with Java 32-bit (win32.win32.x86)
* Linux x86 (gtk.linux.x86)
* Linux x86-64 (gtk.linux.x86_64)
* Mac OS X Carbon with Java 32-bit (carbon.macosx.x86)
* Mac OS X Cocoa with Java 32-bit (cocoa.macosx.x86)
In brief, Java 64-bit is supported on Linux only, on all other systems Visual Editor requires Java 32-bit.
*Q: Visual Editor does not start under Linux*
*A:* Linux users may need to do the following to get the visual editor to work correctly on their machines.
* The Visual Page Editor (before JBoss Tools 3.1.0.M4) requires the library libstdc++.so.5. This library is contained in the compat-libstdc++-33.i386 package.
* To install this package on Fedora Core or Red Hat Enterprise Linux run the following command:
yum install compat-libstdc++-33.i386
** On any other rpm based distributions download libstdc++.so.5 and run the following command:
rpm -Uvh compat-libstdc++-33.i386
** On Debian and Debian based distributions (e.g. Ubuntu) run the following command:
apt-get install libstdc++5
* In case you have the library installed and you still have issue with starting the visual page editor then close all browser views/editors and leave one visual page editor open and restart eclipse. This should force a load of the right XULRunner viewer.
*Q: Visual Editor doesn't start at any platform and shows message 'The VPE editor can't be run because your system environment needs to be changed slightly'*
*A:* Check if you version of JBoss Developer Studio/JBoss Tools is compatible with you version of Eclipse, see the compatibility matrix http://community.jboss.org/docs/DOC-14297 http://www.jboss.org/community/wiki/Matrixofsupportedplatformsruntimesand...
*Q: Visual Editor starts OK, but the following message dialog appears:*
http://community.jboss.org/servlet/JiveServlet/showImage/102-10862-37-195... http://community.jboss.org/servlet/JiveServlet/downloadImage/102-10862-37...
*A:* Some functionality of Visual Editor may not work if a project doesn't have org.jboss.tools.jsf.jsfnature or org.jboss.tools.jst.web.kb.kbnature in .project configuration. To fix this problem and turn off the message box execute next steps:
* Right mouse button click on a project in Package Explorer.
* Select +Configure -> Add JSF Capabilities+ from the context menu.
* Configure your project using +Add JSF Capabilities+ wizard and press Finish.
*P.S.* If you are shure that your project does not need JSF capabilities, just disable this message box by checking "+Do not show this dialog again!+" checkbox.
*Q: Visual Part doesn't start and "XPCOM error -2147467259" is shown*
*A:* Something bad happened with buildin xulrunner. To check it you should:
* Go to Eclipse -> Help -> About -> Installation Details... -> Configuration
* find +org.eclipse.swt.browser.XULRunnerPath+ and open this path in terminal
* try xulrunner.exe -version or ./xulrunner -version and it should show what is needed for XR to work
--------------------------------------------------------------
Comment by going to Community
[http://community.jboss.org/docs/DOC-10862]
Create a new document in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=102&co...]
15 years, 1 month