[Beginner's Corner] - How to access message body of an aggregated message?
by Derek Croxton
Derek Croxton [https://community.jboss.org/people/mataratones] created the discussion
"How to access message body of an aggregated message?"
To view the discussion, visit: https://community.jboss.org/message/802445#802445
--------------------------------------------------------------
We're using a StreamingAggregator to put several messages together, but after they're recombined, we need to extract each original body and recombine them in a different way. It looks like the StreamingAggregator combines the message bodies in a Mapor something similar, because the results of message.getBody().get() show something like: {0=xxx,1=yyy}.
Unfortunately, I am unable to retrieve the body as an object where I could easily get the separate messages out. Message.getBody() is a BodyImpl object and can't be case to a MapBody or ObjectBody. Message.getBody().get() returns a string and can't be cast to anything else easily, as far as I can tell.
I hope there is some way to retrieve the original message bodies. I can't just split the string on the comma because there are embedded commas in the data. Any suggestions?
Derek
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/802445#802445]
Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 1 month
[jBPM] - Help needed in integrating Jbpm5.4 with Oracle 11
by dhana lakshmi
dhana lakshmi [https://community.jboss.org/people/dhanalakshmiv14] created the discussion
"Help needed in integrating Jbpm5.4 with Oracle 11"
To view the discussion, visit: https://community.jboss.org/message/802775#802775
--------------------------------------------------------------
Hi,
I am trying to setup jbpm5.4 with oracle 11g. I have modified following files,
* *jbpm-installer\db*\*jbpm-persistence-JPA2.xml - to point to oracle dialect*
* *jbpm-installer\db\task-persistence-JPA1.xml - modified properties like url,username and password*
* *jbpm-installer\task-service\resources\META-INF\persistence.xml - modified the properties to point to my database*
* *jbpm-installer\lib\jbpm-gwt-console-server-5.4.0.Final-EE6.war\WEB-INF\classes\META-INF\persistence.xml - modified the dialect*
* *jbpm-installer\lib\jbpm-human-task-war-5.4.0.Final-EE6.war\WEB-INF\classes\META-INF\persistence.xml - modified the dialect*
* Placed ojdbc6.jar file under *jbpm-installer\db\driver*
* Created a oracleserver_module.xml under *jbpm-installer\db*
* Modified *jbpm-installer\build.properties* to point to the oracle database
* Did changes in *jbpm-installer\standalone.xml*
*After modifying all the files, I ran "ant install.db.files" - it successfully copied the jar to jboss-as*
*then I ran "ant start.human.task" to create the table but its throwing me SQLException:*
*
*
C:\jbpm\jbpm-installer\build.xml:864: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
Copying 1 file to C:\jbpm\jbpm-installer\task-service\target
1 14/03 14:42:35,251[main] ERROR tool.hbm2ddl.SchemaUpdate.execute - could not get database metadata
java.sql.SQLException: ORA-01017: invalid username/password; logon denied
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
at oracle.jdbc.ttc7.O3log.receive2nd(O3log.java:496)
at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:278)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:346)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:468)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:314)
at java.sql.DriverManager.getConnection(DriverManager.java:579)
at java.sql.DriverManager.getConnection(DriverManager.java:190)
at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:133)
at org.hibernate.tool.hbm2ddl.SuppliedConnectionProviderConnectionHelper.prepare(SuppliedConnectionProviderConnectionHelper.java:51)
at org.hibernate.tool.hbm2ddl.SchemaUpdate.execute(SchemaUpdate.java:168)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:356)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1341)
at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)
at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:126)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:52)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:34)
at org.jbpm.DemoTaskService.main(Unknown Source)
6 14/03 14:42:35,256[main] ERROR tool.hbm2ddl.SchemaUpdate.execute - could not complete schema update
java.sql.SQLException: ORA-01017: invalid username/password; logon denied
*
*
*NOTE: I have given proper credentials*
Thanks in Advance!!!
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/802775#802775]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 1 month
[IronJacamar] - JCA Spec violation using resource-adapter in JBoss 7?
by jleinawe
jleinawe [https://community.jboss.org/people/jleinawe] created the discussion
"JCA Spec violation using resource-adapter in JBoss 7?"
To view the discussion, visit: https://community.jboss.org/message/799730#799730
--------------------------------------------------------------
JBoss AS 7.1.1.Final-SNAPSHOT
JBoss IronJacamar 1.0.8.Final
Testing a JMS resource-adapter deployed to JBoss which will use WebLogic as the JMS provider. In a transacted MDB test, this error appears in the JBoss log (which is attached) when the MDB tries to send and outbound reply message
11:18:24,023 ERROR [stderr] (default-short-running-threads-threads - 1) javax.transaction.xa.XAException: J2EE GJRA-01501: cause = Attempt to start a transaction while in an active (global or local) transaction.; action = Complete current transaction before starting another
By analysis our RA's own tracing, this looks like a JCA spec violation. xaResourceWrapper2 (the XAResource for managedConnectionImpl0) is being enlisted with xid3. Then without delisting xaResourceWrapper2, jboss is doing a managedConnectionImpl0.cleanup() call (which is a JCA spec violation). Then later when it tries to enlist xaResourceWrapper2 with xid5, that fails because xaResourceWrapper2 is still enlisted with xid3. (That enlistment attempt is not even getting to WebLogic JMS because the RA is detecting the XA protocol violation.)
Excerpts from log:
out:MessageEndpoint.beforeDelivery(public abstract void javax.jms.MessageListener.onMessage(javax.jms.Message)) #4 @1361560688075..1361560688295
in:xaResourceWrapper0.setTransactionTimeout(300) -> true #4 @1361560688102..1361560688173
out:XAResource.setTransactionTimeout(300) -> true #4 @1361560688126..1361560688155
in:xaResourceWrapper0.start(xid3,0) #4 @1361560688191..1361560688277 [TMNOFLAGS]
out:XAResource.start(xid3,0) #4 @1361560688223..1361560688260 [TMNOFLAGS]
[...]
out:MessageListener.onMessage(genericStreamMessage0) #1 @1361560697008..1361560702586
in:wlxaQueueConnectionFactory0.createConnection() -> wlConnection0 #1 @1361560698037..1361560700740
out:ConnectionManager.allocateConnection(wlManagedXAQueueConnectionFactory0,connectionRequestInfoImpl0) -> wlConnection0 #1 @1361560698093..1361560700687
[...]
*in:managedConnectionImpl0.getXAResource() -> xaResourceWrapper2* #1 @1361560699619..1361560699675
[...]
*in:xaResourceWrapper2.start(xid3,2097152)* #6 @1361560700092..1361560700275 [TMJOIN]
out:XAResource.start(xid3,2097152) #6 @1361560700157..1361560700226 [TMJOIN]
[...]
out:MessageEndpoint.afterDelivery() #4 @1361560702595..1361560702930
in:xaResourceWrapper0.end(xid3,67108864) #4 @1361560702612..1361560702709 [TMSUCCESS]
out:XAResource.end(xid3,67108864) #5 @1361560702649..1361560702688 [TMSUCCESS]
in:xaResourceWrapper0.commit(xid3,true) #4 @1361560702729..1361560702851
out:XAResource.commit(xid3,true) #4 @1361560702766..1361560702830
i*n:managedConnectionImpl0.cleanup()* #1 @1361560702871..1361560702904 [JCA spec violation]
out:MessageEndpoint.beforeDelivery(public abstract void javax.jms.MessageListener.onMessage(javax.jms.Message)) #6 @1361560702938..1361560703159
[...]
out:MessageConsumer.receive(15000) -> TextMessage[ID:<384827.1361560696991.0>, null] #6 @1361560703168..1361560703201
out:MessageListener.onMessage(genericTextMessage0) #2 @1361560703226..1361560704964
in:wlxaQueueConnectionFactory0.createConnection() threw #2 @1361560703250..1361560704672
out:ConnectionManager.allocateConnection(wlManagedXAQueueConnectionFactory0,connectionRequestInfoImpl0) threw #2 @1361560703307..1361560704447
[...]
i*n:xaResourceWrapper2.start(xid5,2097152) threw* #8 @1361560703786..1361560703871 [TMJOIN]
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/799730#799730]
Start a new discussion in IronJacamar at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 1 month
[jBPM] - Transaction Issue with EJBs
by Shobhit Tyagi
Shobhit Tyagi [https://community.jboss.org/people/roxy1987] created the discussion
"Transaction Issue with EJBs"
To view the discussion, visit: https://community.jboss.org/message/802749#802749
--------------------------------------------------------------
Hi Community,
I have run into an issue with transactions.
I raised a similar question before and I marked it as answered after getting some helpful replies but it looks like the issue was temporarily gone.
I have 3 separate prjects. One web, one EJB and one simple java.
For instance if I have to start a process or I have to complete a task, I send request from a Managed Bean(web project) to the Session Bean(EJB project), which calls the APIs present in the java project.
In my SessionBean, I use the TransactionManagement annotation as
@TransactionManagement(TransactionManagementType.BEAN)
And I call the BPM APIs as
@Resource
private EJBContext context;
....
....
@Override
public void completeTask(long taskID, String userID, Map<String, Object> map) throws Exception
{
UserTransaction ut = context.getUserTransaction();
try
{
ut.begin();
BpmAPI.startTask(taskID, userID);
BpmAPI.completeTask(taskID, userID);
ut.commit();
}
catch(Exception e)
{
ut.rollback();
e.printStackTrace();
}
}
But doing this gives me the transaction exception. It completes the task but doesnt signal the process instance. But this happens when I leave the taskHandler open, which is created while starting the process instance.
If I dispose the taskHandler, the transaction exception goes away but the process instance still doesnt proceed after completing the task.
I believe for signalling the process, taskHandler needs to be not disposed.
For now the workaround I am doing is disposing the taskHandler, completing the task, completing the workitem(to signal process instance). But just completeTask should do the trick.
COuld anyone please help me with the Transaction Management.
I use Websphere 8.5 web container.
Regards.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/802749#802749]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 1 month
[jBPM] - ProcessContext Throwing NPE
by roxy1987
roxy1987 [https://community.jboss.org/people/roxy1987] created the discussion
"ProcessContext Throwing NPE"
To view the discussion, visit: https://community.jboss.org/message/801365#801365
--------------------------------------------------------------
Hi community,
I have run into an issue trying to set a variable.
What I want is to set a variable while completing a task. The following is what I do :
//Just before task complete I call the following code.
StatefulKnowledgeSession kSession = BpmRepositoryConfig.createSession();
ProcessContext kContext = new ProcessContext(kSession);
ProcessInstance processInstance = kSession.getProcessInstance(taskData.getProcessInstanceId());
logger.info("ProcInst : "+processInstance.getId());
kContext.setProcessInstance(processInstance);
for (Entry<String, Object> entry : map.entrySet())
{
logger.info(entry.getKey() + "/" + entry.getValue());
if(!(kContext == null))
kContext.setVariable(entry.getKey(), entry.getValue());
else
logger.severe("KContext is Null");
}
KContext is not null. But it throws the following NPE :
[3/7/13 10:47:46:951 COT] 00000110 SystemErr R java.lang.NullPointerException
[3/7/13 10:47:46:951 COT] 00000110 SystemErr R at org.jbpm.process.instance.impl.ProcessInstanceImpl.getProcess(ProcessInstanceImpl.java:68)
[3/7/13 10:47:46:951 COT] 00000110 SystemErr R at org.jbpm.process.instance.impl.ProcessInstanceImpl.getContextInstance(ProcessInstanceImpl.java:133)
[3/7/13 10:47:46:951 COT] 00000110 SystemErr R at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.setVariable(WorkflowProcessInstanceImpl.java:238)
[3/7/13 10:47:46:951 COT] 00000110 SystemErr R at org.drools.spi.ProcessContext.setVariable(ProcessContext.java:68)
[3/7/13 10:47:46:951 COT] 00000110 SystemErr R at pe.com.bcp.model.BpmAPI.createTaskVariables(Unknown Source)
Need help please. And other ideas to create task variables are welcome. Thanks.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/801365#801365]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 1 month
[IronJacamar] - xa-datasource is not registered correctly
by Gytis Trikleris
Gytis Trikleris [https://community.jboss.org/people/gytis] created the discussion
"xa-datasource is not registered correctly"
To view the discussion, visit: https://community.jboss.org/message/802706#802706
--------------------------------------------------------------
Hello,
I'm writing a quickstart to show integration of JBoss Transactions, IronJacamar and Tomcat. However, I am a little bit stuck with Postgres xa-datasource. It seams that it is not getting registered correctly. I can successfully access database with local datasource, but I get the following exception when using xa-datasource (exception stack trace available here: http://pastebin.com/vmjHLHX6 http://pastebin.com/vmjHLHX6):
...
Caused by: org.postgresql.util.PSQLException: FATAL: database "IronJacamarTryout;User=postgres;ServerName=127.0.0.1;PortNumber" does not exist
at org.postgresql.core.v3.ConnectionFactoryImpl.readStartupMessages(ConnectionFactoryImpl.java:471)
at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:112)
at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:66)
at org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(AbstractJdbc2Connection.java:125)
at org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(AbstractJdbc3Connection.java:30)
at org.postgresql.jdbc3g.AbstractJdbc3gConnection.<init>(AbstractJdbc3gConnection.java:22)
at org.postgresql.jdbc4.AbstractJdbc4Connection.<init>(AbstractJdbc4Connection.java:32)
at org.postgresql.jdbc4.Jdbc4Connection.<init>(Jdbc4Connection.java:24)
at org.postgresql.Driver.makeConnection(Driver.java:393)
at org.postgresql.Driver.connect(Driver.java:267)
at java.sql.DriverManager.getConnection(DriverManager.java:579)
at java.sql.DriverManager.getConnection(DriverManager.java:221)
at org.postgresql.ds.common.BaseDataSource.getConnection(BaseDataSource.java:92)
at org.postgresql.xa.jdbc3.AbstractJdbc3XADataSource.getXAConnection(AbstractJdbc3XADataSource.java:57)
at org.jboss.jca.adapters.jdbc.xa.XAManagedConnectionFactory.getXAManagedConnection(XAManagedConnectionFactory.java:430)
... 43 more
Datasource registration code looks as following (available on github: https://github.com/Gytis/quickstart/blob/master-JBTM-1479/ArjunaJTS/jca-a... https://github.com/Gytis/quickstart/blob/master-JBTM-1479/ArjunaJTS/jca-a...):
// ...
Embedded embedded = EmbeddedFactory.create();
embedded.startup();
embedded.deploy(getURL(JDBC_RAR_FILE_NAME));
embedded.deploy(getURL(POSTGRES_DS_FILE_NAME));
Context context = new InitialContext();
DataSource dataSource = (DataSource) context.lookup("java:/PostgresDS");
Connection connection = dataSource.getConnection("postgres", "postgres");
// ...
postgres-ds.xml (the one which works) looks as following (available on github: https://github.com/Gytis/quickstart/blob/master-JBTM-1479/ArjunaJTS/jca-a... https://github.com/Gytis/quickstart/blob/master-JBTM-1479/ArjunaJTS/jca-a...):
<?xml version="1.0" encoding="UTF-8"?>
<datasources xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://www.jboss.org/ironjacamar/schema/datasources_1_0.xsd">
<datasource jndi-name="PostgresDS" pool-name="PostgresDS">
<connection-url>jdbc:postgresql://127.0.0.1:5432/IronJacamarTryout</connection-url>
<driver-class>org.postgresql.Driver</driver-class>
<security>
<user-name>postgres</user-name>
<password>postgres</password>
</security>
<validation>
<valid-connection-checker
class-name="org.jboss.jca.adapters.jdbc.extensions.postgres.PostgreSQLValidConnectionChecker"></valid-connection-checker>
<exception-sorter
class-name="org.jboss.jca.adapters.jdbc.extensions.postgres.PostgreSQLExceptionSorter"></exception-sorter>
</validation>
</datasource>
</datasources>
And finally postgres-xa-ds.xml (the one which does not work) looks as following (available on github: https://github.com/Gytis/quickstart/blob/master-JBTM-1479/ArjunaJTS/jca-a... https://github.com/Gytis/quickstart/blob/master-JBTM-1479/ArjunaJTS/jca-a...)
<?xml version="1.0" encoding="UTF-8"?>
<datasources xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://www.jboss.org/ironjacamar/schema/datasources_1_0.xsd">
<xa-datasource jndi-name="PostgresDS" pool-name="PostgresDS">
<xa-datasource-property name="ServerName">127.0.0.1</xa-datasource-property>
<xa-datasource-property name="PortNumber">5432</xa-datasource-property>
<xa-datasource-property name="DatabaseName">IronJacamarTryout</xa-datasource-property>
<xa-datasource-property name="User">postgres</xa-datasource-property>
<xa-datasource-property name="Password">postgres</xa-datasource-property>
<xa-datasource-class>org.postgresql.xa.PGXADataSource</xa-datasource-class>
<validation>
<valid-connection-checker
class-name="org.jboss.jca.adapters.jdbc.extensions.postgres.PostgreSQLValidConnectionChecker"></valid-connection-checker>
<exception-sorter
class-name="org.jboss.jca.adapters.jdbc.extensions.postgres.PostgreSQLExceptionSorter"></exception-sorter>
</validation>
</xa-datasource>
</datasources>
PostgreSQL version used: 9.1
IronJacamar version used: 1.0.15.Final
JDK version used: 1.7
pom.xml: https://github.com/Gytis/quickstart/blob/master-JBTM-1479/ArjunaJTS/jca-a... https://github.com/Gytis/quickstart/blob/master-JBTM-1479/ArjunaJTS/jca-a...
p.s.
username and password does not have to be passed to dataSource.getConnection(), if local datasource is used. However, such invocation will raise an error that password is missing, if xa-datasource is used. (see: datasource registration code).
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/802706#802706]
Start a new discussion in IronJacamar at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 1 month
[jBPM] - BooleanDataType in work item definition causes ClassCastException in the BPMN2 process editor
by Olaf Sebelin
Olaf Sebelin [https://community.jboss.org/people/osebelin] created the discussion
"BooleanDataType in work item definition causes ClassCastException in the BPMN2 process editor"
To view the discussion, visit: https://community.jboss.org/message/802702#802702
--------------------------------------------------------------
Hi,
I defined a work item definition that has a boolean parameter. Entering a value for that boolean parameter in the BPMN2 process editor plugin in Eclipse, causes a ClassCastException when selecting the work item for display in the Properties tab.
This happens when I close the editor and reopen it. afterwards the selection of work items doesn't work properly.
Stacktrace:
java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean
at org.drools.process.core.datatype.impl.type.BooleanDataType.writeValue(BooleanDataType.java:52)
at org.drools.eclipse.flow.ruleflow.core.WorkItemWrapper.getPropertyValue(WorkItemWrapper.java:145)
at org.eclipse.ui.views.properties.PropertySheetEntry.refreshValues(PropertySheetEntry.java:611)
at org.eclipse.ui.views.properties.PropertySheetEntry.refreshChildEntries(PropertySheetEntry.java:568)
at org.eclipse.ui.views.properties.PropertySheetEntry.setValues(PropertySheetEntry.java:760)
at org.eclipse.ui.views.properties.PropertySheetViewer.setInput(PropertySheetViewer.java:973)
at org.eclipse.ui.views.properties.PropertySheetPage.selectionChanged(PropertySheetPage.java:510)
at org.eclipse.ui.views.properties.PropertySheet.selectionChanged(PropertySheet.java:363)
at org.eclipse.ui.internal.AbstractSelectionService.firePostSelection(AbstractSelectionService.java:179)
at org.eclipse.ui.internal.AbstractSelectionService$2.selectionChanged(AbstractSelectionService.java:71)
at org.eclipse.gef.ui.parts.AbstractEditPartViewer.fireSelectionChanged(AbstractEditPartViewer.java:247)
at org.eclipse.gef.ui.parts.AbstractEditPartViewer$1.run(AbstractEditPartViewer.java:131)
at org.eclipse.gef.SelectionManager.fireSelectionChanged(SelectionManager.java:144)
at org.eclipse.gef.SelectionManager.appendSelection(SelectionManager.java:83)
at org.eclipse.gef.ui.parts.AbstractEditPartViewer.appendSelection(AbstractEditPartViewer.java:190)
at org.eclipse.gef.ui.parts.AbstractEditPartViewer.select(AbstractEditPartViewer.java:599)
at org.eclipse.gef.tools.SelectEditPartTracker.performSelection(SelectEditPartTracker.java:221)
at org.eclipse.gef.tools.SelectEditPartTracker.performConditionalSelection(SelectEditPartTracker.java:167)
at org.eclipse.gef.tools.SelectEditPartTracker.handleButtonDown(SelectEditPartTracker.java:92)
at org.eclipse.gef.tools.AbstractTool.mouseDown(AbstractTool.java:1091)
at org.eclipse.gef.tools.SelectionTool.mouseDown(SelectionTool.java:514)
at org.eclipse.gef.EditDomain.mouseDown(EditDomain.java:245)
at org.eclipse.gef.ui.parts.DomainEventDispatcher.dispatchMousePressed(DomainEventDispatcher.java:348)
at org.eclipse.draw2d.LightweightSystem$EventHandler.mouseDown(LightweightSystem.java:523)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:191)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3588)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3209)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
The exception can be reproduced with the following simple example work item definition.
import org.drools.process.core.datatype.impl.type.BooleanDataType;
import org.drools.process.core.datatype.impl.type.StringDataType;
import org.drools.process.core.datatype.impl.type.ObjectDataType;
[
[
"name" : "MyTask",
"displayName" : "My Task",
"parameters" : [
"MyStringParam" : new StringDataType(),
"MyBoolParam" : new BooleanDataType()
],
"results" : [
"Result" : new ObjectDataType("java.util.Map")
],
"displayName" : "My Task",
]
]
The editor field for the "MyBoolParam" is a text field. What do I have to do ta make this a boolean editor field (e.g. a drop down box like the Terminate parameter in the End Event)?
BTW, This occurs with IntegerDataTypes, too.
Thank you for your help
Olaf
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/802702#802702]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
13 years, 1 month