[jBPM] - Re: Drools Simple rule evaluation
by Mike schwery
Mike schwery [https://community.jboss.org/people/mschwery] created the discussion
"Re: Drools Simple rule evaluation"
To view the discussion, visit: https://community.jboss.org/message/726964#726964
--------------------------------------------------------------
I'm getting the following error.
org.drools.RuntimeDroolsException: invalid package name
at org.jbpm.compiler.ProcessBuilderImpl.buildProcess(ProcessBuilderImpl.java:173)
at org.jbpm.compiler.ProcessBuilderImpl.addProcessFromXml(ProcessBuilderImpl.java:252)
at org.drools.compiler.PackageBuilder.addProcessFromXml(PackageBuilder.java:564)
at org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.java:608)
at org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:37)
at com.edpm.demo.JBPMClient.readKnowledgeBase(JBPMClient.java:72)
at com.edpm.demo.JBPMClient.main(JBPMClient.java:38)
[5,9]: [ERR 102] Line 5:9 mismatched input 'DeliveryStatus' in rule "RuleFlow-Split-com.edpm.demo.LoanProcess-3-4-DROOLS_DEFAULT"
[12,9]: [ERR 102] Line 12:9 mismatched input 'DeliveryStatus' in rule "RuleFlow-Split-com.edpm.demo.LoanProcess-3-5-DROOLS_DEFAULT"
[0,0]: Parser returned a null Package
ProcessLoadError: unable to parse xml : Exception class org.drools.RuntimeDroolsException : invalid package name
java.lang.IllegalArgumentException: Could not parse knowledge.
at org.drools.builder.impl.KnowledgeBuilderImpl.newKnowledgeBase(KnowledgeBuilderImpl.java:67)
at com.edpm.demo.JBPMClient.readKnowledgeBase(JBPMClient.java:73)
at com.edpm.demo.JBPMClient.main(JBPMClient.java:38)
Rule
#created on: Mar 27, 2012
package com.edpm.demo
import com.edpm.demo.Loan;
import org.drools.event.process.ProcessStartedEvent;
declare ProcessStartedEvent
@role(event)
end
rule "Spike alert"
when
Number (nbProcesses : intValue > 3)
from accumulate(
e: ProcessStartedEvent(processInstance.processId == "com.edpm.demo.LoanProcess")
over window:size(1h),
count(e))
loan:Loan(true)
then
loan.setProcessId(nbProcesses);
loan.setDeliveryStatus(false);
end
rule "Spike alert1"
when
Number (nbProcesses : intValue < 3)
from accumulate(
e: ProcessStartedEvent(processInstance.processId == "com.edpm.demo.LoanProcess")
over window:size(1h),
count(e))
loan:Loan(false)
then
loan.setProcessId(nbProcesses);
loan.setDeliveryStatus(false);
end
Test code
Loan loan = new Loan();
ksession.insert(loan);
ksession.fireAllRules();
Map<String, Object> params = new HashMap<String, Object>();
params.put("myLoan",loan);
ksession.startProcess("LoanProcess",params);
BPM settings
Id com.ebpm.demo.LoanProcess
Name LoanProcess
Package org.drools.bpmn2
swimlanes loan
variables myLoan
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/726964#726964]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 2 months
[JBoss Tools] - Moving m2e-wtp project to Eclipse
by Max Rydahl Andersen
Max Rydahl Andersen [https://community.jboss.org/people/maxandersen] modified the blog post:
"Moving m2e-wtp project to Eclipse"
To view the blog post, visit: https://community.jboss.org/community/tools/blog/2012/03/28/moving-m2e-wt...
--------------------------------------------------------------
Over the last 2+ years we have done a lot of work at helping improving Maven Integration for Eclipse (m2e) in areas of performance, features and extensions.
One of those extensions, if not the most important one, is maintaining and developing Maven Integration for Web Tools Platform also called m2e-wtp.
Today (or rather last night) our proposal for making this an Eclipse.org project http://www.eclipse.org/proposals/technology.m2e.m2e-wtp/ got posted.
h1. What is m2e-wtp
m2e-wtp is what helps you get seamless import of your maven projects with all the right dependencies configured, the proper assembly setup and it will even enable features in Eclipse that are relevant based on your maven pom.xml file, in context of the Web Tools Platform features : automatic configuration for Web, EJB, EAR, Connector, Web Fragment and Application Client projects.
m2e-wtp also brings some maven exclusive features to your favorite IDE, such as dynamic http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filterin... web resource filtering or http://maven.apache.org/plugins/maven-war-plugin/overlays.html war overlays.
You can get the current m2e-wtp from http://marketplace.eclipse.org/node/96737 Eclipse Marketplace or by /www.jboss.org/tools/download installing JBoss Tools.
h1. Why bring m2e-wtp to Eclipse
m2e-wtp have had a “fun” life over the years. After m2e moved to Eclipse, m2e-wtp was in a weird place seeing that Sonatype hosted the issue tracker and the main source repository at github while JBoss eventually took over the development and maintenance, but the core m2e was at Eclipse.
This spread between multiple organizations have made it harder than necessary for potential contributors to get involved and it also made it tricky for users to know where and how to get involved and get help.
To remedy this, we’ve worked over the last couple of weeks/months to prepare a proposal to move m2e-wtp and this proposal is now what is /www.eclipse.org/proposals/technology.m2e.m2e-wtp/) available on Eclipse.org.
h1. What does this mean for JBoss Tools users
It should not have any big impact to start - we plan on making the migration from the original m2e-wtp to m2e-wtp at Eclipse as smooth as possible.
We will continue to drive and contribute to m2e-wtp, and JBoss Tools will still provide extensions and integration on top of m2e and m2e-wtp.
Some of these extensions don’t make sense elsewhere than in context of JBoss Tools and others will eventually find their way into m2e and m2e-wtp.
h1. How do I support/contribute to this proposal ?
If you are interested in this project and seeing it become a full eclipse project, please comment on it on http://www.eclipse.org/forums/index.php?t=thread&frm_id=202 Eclipse Proposal forum, email me directly at mailto://max.andersen@redhat.com max.andersen(a)redhat.com or catch me at EclipseCon this week!
We would love to hear your thoughts on this, even if it is just a “that is about freaking time” comment :)
Great thanks go to all the people from Sonatype, IBM, Oracle, SAP, VMWare and others involved in making this proposal happen - to know more about them and the proposal, read http://www.eclipse.org/proposals/technology.m2e.m2e-wtp/ more here.
In conclusion I would like to thank Fred Bricon for his outstanding work on m2e-wtp and I’m looking forward to see where he will take it going forward hosted at eclipse.org.
Thank you and have fun!
--------------------------------------------------------------
Comment by going to Community
[https://community.jboss.org/community/tools/blog/2012/03/28/moving-m2e-wt...]
12 years, 2 months
[JBoss Tools] - Moving m2e-wtp project to Eclipse
by Max Rydahl Andersen
Max Rydahl Andersen [https://community.jboss.org/people/maxandersen] created the blog post:
"Moving m2e-wtp project to Eclipse"
To view the blog post, visit: https://community.jboss.org/community/tools/blog/2012/03/28/moving-m2e-wt...
--------------------------------------------------------------
Over the last 2+ years we have done a lot of work at helping improving Maven Integration for Eclipse (m2e) in areas of performance, features and extensions.
One of those extensions, if not the most important one, is maintaining and developing Maven Integration for Web Tools Platform also called m2e-wtp.
Today (or rather last night) our proposal for making this an Eclipse.org project http://www.eclipse.org/proposals/technology.m2e.m2e-wtp/ got posted.
h1. What is m2e-wtp
m2e-wtp is what helps you get seamless import of your maven projects with all the right dependencies configured, the proper assembly setup and it will even enable features in Eclipse that are relevant based on your maven pom.xml file, in context of the Web Tools Platform features : automatic configuration for Web, EJB, EAR, Connector, Web Fragment and Application Client projects.
m2e-wtp also brings some maven exclusive features to your favorite IDE, such as dynamic http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filterin... web resource filtering or http://maven.apache.org/plugins/maven-war-plugin/overlays.html war overlays.
You can get the current m2e-wtp from http://marketplace.eclipse.org/node/96737 Eclipse Marketplace or by /www.jboss.org/tools/download installing JBoss Tools.
h1. Why bring m2e-wtp to Eclipse
m2e-wtp have had a “fun” life over the years. After m2e moved to Eclipse, m2e-wtp was in a weird place seeing that Sonatype hosted the issue tracker and the main source repository at github while JBoss eventually took over the development and maintenance, but the core m2e was at Eclipse.
This spread between multiple organizations have made it harder than necessary for potential contributors to get involved and it also made it tricky for users to know where and how to get involved and get help.
To remedy this, we’ve worked over the last couple of weeks/months to prepare a proposal to move m2e-wtp and this proposal is now what is /www.eclipse.org/proposals/technology.m2e.m2e-wtp/) available on Eclipse.org.
h1. What does this mean for JBoss Tools users
It should not have any big impact to start - we plan on making the migration from the original m2e-wtp to m2e-wtp at Eclipse as smooth as possible.
We will continue to drive and contribute to m2e-wtp, and JBoss Tools will still provide extensions and integration on top of m2e and m2e-wtp.
Some of these extensions don’t make sense elsewhere than in context of JBoss Tools and others will eventually find their way into m2e and m2e-wtp.
h1. How do I support/contribute to this proposal ?
If you are interested in this project and seeing it become a full eclipse project, please comment on it on http://www.eclipse.org/forums/index.php?t=thread&frm_id=202 Eclipse Propsal forum, email me directly at mailto://max.andersen@redhat.com max.andersen(a)redhat.com or catch me at EclipseCon this week!
We would love to hear your thoughts on this, even if it is just a “that is about freaking time” comment :)
Great thanks go to all the people from Sonatype, IBM, Oracle, SAP, VMWare and others involved in making this proposal happen - to know more about them and the proposal, read http://www.eclipse.org/proposals/technology.m2e.m2e-wtp/ more here.
In conclusion I would like to thank Fred Bricon for his outstanding work on m2e-wtp and I’m looking forward to see where he will take it going forward hosted at eclipse.org.
Thank you and have fun!
--------------------------------------------------------------
Comment by going to Community
[https://community.jboss.org/community/tools/blog/2012/03/28/moving-m2e-wt...]
12 years, 2 months
[jBPM] - jBPM Eclipse modeler: How to enter a numerical value to a service node input parameter
by whabelitz
whabelitz [https://community.jboss.org/people/whabelitz] created the discussion
"jBPM Eclipse modeler: How to enter a numerical value to a service node input parameter"
To view the discussion, visit: https://community.jboss.org/message/726870#726870
--------------------------------------------------------------
I #####use jBPM 5.0 and want to apply domain-specific service nodes with parameters of type Integer.
So I define for the Eclipse process modeler something like
[
"name" : "TestNode",
"parameters" : [
"stringPara": new StringDataType(),
"intPara" : new IntegerDataType(),
],
"results" : [
"intResult" : new IntegerDataType(),
],
"displayName" : "Test activity",
"icon" : "icons/action.gif"
]
in my WorkDefinitions.conf file.
How can I now enter integer values inside the process modeler when using such a service node?
If I just enter a numerical value inside the property pane, I get an error (ClassCastException: java.lang.String cannot be cast to java.lang.Integer)
after saving and reopening the process definition. The expression inside the process definition looks like
<dataInputAssociation>
<targetRef>_2_intParaInput</targetRef>
<assignment>
<from xsi:type="tFormalExpression">1</from>
<to xsi:type="tFormalExpression">_2_intParaInput</to>
</assignment>
</dataInputAssociation>
If no solution for Eclipse is available, can the web modeler (Oryx Designer) handle numerical parameters? And can the web modeler be used standalone (without Guvnor) reading and writing process definitions from/to the file system?
If I manage to handle numerical values during process design, what is during runtime? Can I access this parameter inside a WorkItemHandler using "(Integer) workItem.getParameter("intPara")" or will this cause a class cast exception?
My work around at the moment is defining non string values inside a script node and using parameter mapping, but this is not a nice solution and inflate the process definition
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/726870#726870]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 2 months
[Javassist] - Annotation checking in OSGi environment causes troubles
by Felix Mayerhuber
Felix Mayerhuber [https://community.jboss.org/people/arcticwolf] created the discussion
"Annotation checking in OSGi environment causes troubles"
To view the discussion, visit: https://community.jboss.org/message/726848#726848
--------------------------------------------------------------
Hi,
First I want to say that javassist is a really great bytemanipulation framework and it works really really good. I use javassist in an OSGi environment to do some class enhancements in runtime with weaving hooks.
To get things working, especially with the ClassPool, I added to the ClassPool an own ClassLoader. Everything works fine except for two methods, both concerning annotations, namely:
"hasAnnotation" and "getAnnotation". If I use them, I always get ClassNotFoundExceptions. My workaround now is that do exactly the same like you do in javassist lib in my code to analyse the class and check for annotations. In that way it works.
So I assume that this both methods don't use the added ClassLoader. Could that be?
Javassist version: 3.12.1.GA
Kind regards
Felix
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/726848#726848]
Start a new discussion in Javassist at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 2 months
[jBPM] - Getting [FATAL] Uncaught Exception:com.google.gwt.core.client.JavaScriptException in jbpm console when console is trying to display the task for the user krisv.
by srikant vege
srikant vege [https://community.jboss.org/people/srikanthvege1] created the discussion
"Getting [FATAL] Uncaught Exception:com.google.gwt.core.client.JavaScriptException in jbpm console when console is trying to display the task for the user krisv."
To view the discussion, visit: https://community.jboss.org/message/726303#726303
--------------------------------------------------------------
I am trying to get a task for the user 'krisv' in the jbpm console by logging into the console as krisv/krisv. The task is retrieved correctly from the server (as shown by the logging), but during the parsing for display, something goes wrong (please find below, the console log). The end result is that the task is not displayed. Please help me out on resolving this issue. I am using jbpm-gwt-console-5.2.0.Final.war & jbpm-gwt-console-server-5.2.0.Final.war.
*2012-03-26 14:08:56,571 [DEBUG] new subscription: appContext.model.listener -> org.jboss.bpm.console.client.task.AssignedTasksView$7@118*
*2012-03-26 14:08:56,573 [DEBUG] New Subscription: appContext.model.listener*
*2012-03-26 14:08:57,364 [DEBUG] GET: http://ideskos-integration-17.eu.rtdom.net:8080/gwt-console-server/rs/tas... http://ideskos-integration-17.eu.rtdom.net:8080/gwt-console-server/rs/tas...
*2012-03-26 14:08:57,402 [DEBUG] parse {"tasks":[{"id":12,"processInstanceId":"22","processId":"Agency_Default_RFP","assignee":"krisv","isBlocking":false,"isSignalling":false,"outcomes":[],"currentState":"ASSIGNED","participantUsers":[],"participantGroups":[],"url":" http://ideskos-integration-17.eu.rtdom.net:8080/gwt-console-server/rs/for... http://ideskos-integration-17.eu.rtdom.net:8080/gwt-console-server/rs/for...","priority":0}]}*
*2012-03-26 14:08:57,405 [DEBUG] parse {"id":12, "processInstanceId":"22", "processId":"Agency_Default_RFP", "assignee":"krisv", "isBlocking":false, "isSignalling":false, "outcomes":[], "currentState":"ASSIGNED", "participantUsers":[], "participantGroups":[], "url":" http://ideskos-integration-17.eu.rtdom.net:8080/gwt-console-server/rs/for... http://ideskos-integration-17.eu.rtdom.net:8080/gwt-console-server/rs/for...", "priority":0}*
*2012-03-26 14:08:57,409 [FATAL] Uncaught Exception:*
*com.google.gwt.core.client.JavaScriptException:*
*(TypeError): a is null*
fileName: http://ideskos-integration-17.eu.rtdom.net:8080/jbpm-console/app/0BEF49B7...
lineNumber: 2574
stack: GPc(null)@http://ideskos-integration-17.eu.rtdom.net:8080/jbpm-console/app/0BEF49B70EC904EB6ABBAF2FF8671067.cache.html:2574
Hyc([object Object])@http://ideskos-integration-17.eu.rtdom.net:8080/jbpm-console/app/0BEF49B70EC904EB6ABBAF2FF8671067.cache.html:1399
Iyc("{\"tasks\":[{\"id\":12,\"processInstanceId\":\"22\",\"processId\":\"Agency_Default_RFP\",\"assignee\":\"krisv\",\"isBlocking\":false,\"isSignalling\":false,\"outcomes\":[],\"currentState\":\"ASSIGNED\",\"participantUsers\":[],\"participantGroups\":[],\"url\":\"http://ideskos-integration-17.eu.rtdom.net:8080/gwt-console-server/rs/for...",\"priority\":0}]}")@http://ideskos-integration-17.eu.rtdom.net:8080/jbpm-console/app/0BEF49B70EC904EB6ABBAF2FF8671067.cache.html:1297
GMc([object Object],"krisv",[object Object])@http://ideskos-integration-17.eu.rtdom.net:8080/jbpm-console/app/0BEF49B70EC904EB6ABBAF2FF8671067.cache.html:1246
Ewc([object Object],[object Object])@http://ideskos-integration-17.eu.rtdom.net:8080/jbpm-console/app/0BEF49B70EC904EB6ABBAF2FF8671067.cache.html:3153
nN([object Object],[object Object])@http://ideskos-integration-17.eu.rtdom.net:8080/jbpm-console/app/0BEF49B70EC904EB6ABBAF2FF8671067.cache.html:2993
VN([object XMLHttpRequest])@http://ideskos-integration-17.eu.rtdom.net:8080/jbpm-console/app/0BEF49B70EC904EB6ABBAF2FF8671067.cache.html:2174
([object Event])@http://ideskos-integration-17.eu.rtdom.net:8080/jbpm-console/app/0BEF49B70EC904EB6ABBAF2FF8671067.cache.html:2568
kz((function () {var a;Fad[a = ++Gad] = null;Had[a] = jjd + Vpd, b.Fb(c);Gad = a - 1;}),[object XMLHttpRequest],[object Object])@http://ideskos-integration-17.eu.rtdom.net:8080/jbpm-console/app/0BEF49B70EC904EB6ABBAF2FF8671067.cache.html:3122
([object Event])@http://ideskos-integration-17.eu.rtdom.net:8080/jbpm-console/app/0BEF49B70EC904EB6ABBAF2FF8671067.cache.html:2428
at Unknown.dA(JsArrayString.java:42)
at Unknown.hx(StackTraceCreator.java:366)
at Unknown.U9(Exceptions.java:29)
at Unknown.GPc(JSONWalk.java:126)
at Unknown.Hyc(JSONWalk.java:48)
at Unknown.Iyc(DTOParser.java:51)
at Unknown.GMc(LoadTasksAction.java:74)
at Unknown.Ewc(AbstractRESTAction.java:78)
at Unknown.nN(Request.java:287)
at Unknown.VN(RequestBuilder.java:393)
at Unknown.anonymous(XMLHttpRequest.java:258)
at Unknown.kz(Impl.java:146)
at Unknown.anonymous(Impl.java:56)
*Thanks*
*Srikant*
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/726303#726303]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 2 months
[Datasource Configuration] - Re: Error in JBoss 7.1.0 datasource configuration
by Areak Huang
Areak Huang [https://community.jboss.org/people/areakbaby] created the discussion
"Re: Error in JBoss 7.1.0 datasource configuration"
To view the discussion, visit: https://community.jboss.org/message/726832#726832
--------------------------------------------------------------
I know how to bound the datasource.I use AS7.1
First at standalone.xml or domain.xml
<subsystem xmlns="urn:jboss:domain:datasources:1.0">
<datasources>
<datasource jndi-name="*java:jboss/OracleDS*" pool-name="OracleDS" enabled="true" jta="true" use-java-context="true" use-ccm="true">
<connection-url>
jdbc:oracle:thin:@*.*.*.:1521:*
</connection-url>
<driver>
*oracle*
</driver>
<transaction-isolation> TRANSACTION_READ_COMMITTED </transaction-isolation>
<pool>
<min-pool-size> 20 </min-pool-size>
<max-pool-size> 300</max-pool-size>
</pool>
<security>
<user-name>*</user-name>
<password>*</password>
</security>
<statement>
<prepared-statement-cache-size> 100 </prepared-statement-cache-size>
<share-prepared-statements/>
</statement>
</datasource>
*<drivers>*
* <driver name="oracle" module="com.oracle.ojdbc14">*
* <driver-class>oracle.jdbc.OracleDriver</driver-class>*
* </driver>*
</drivers>
</datasources>
</subsystem>
then remember to add folder like this: *jboss-as-7.1.0.Final\modules\com\oracle\ojdbc14\main*
in the "main" folder you must create module.xml and ojdbc14.jar
module.xml:
<?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:jboss:module:1.1" name="com.oracle.ojdbc14">
<resources>
<resource-root path="ojdbc14.jar"/>
<!-- Insert resources here -->
</resources>
<dependencies>
<module name="javax.api"/>
<module name="javax.transaction.api"/>
</dependencies>
</module>
so, you can start the server, and input http://localhost:9990/.can http://localhost:9990/ you can see the datasource:
Name JNDI Enabled?
| java:jboss/OracleDS | OracleDS | true |
|
|
|
|
OK.
Areak.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/726832#726832]
Start a new discussion in Datasource Configuration at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 2 months
[jBPM] - Drools Simple rule evaluation
by ous2k
ous2k [https://community.jboss.org/people/ous2k] created the discussion
"Drools Simple rule evaluation"
To view the discussion, visit: https://community.jboss.org/message/726708#726708
--------------------------------------------------------------
Hi,
i'am trying to run this simple example using my own rules it seems that things all right but i get not thing in the console view, why he is not evaluating correctly the rule
*JAVA CODE*
|
|
|
| KnowledgeBase eventKbase = readEventKnowledgeBase(); //read.dlr |
|
|
|
| StatefulKnowledgeSession eventKsession = eventKbase.newStatefulKnowledgeSession(); |
|
|
|
|
|
|
|
|
| KnowledgeBase kbase = readKnowledgeBase();//read BPMN |
|
|
|
| StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession(); |
|
|
|
|
|
|
|
|
| Properties properties = new Properties(); |
|
|
|
| properties.put("drools.processInstanceManagerFactory",DefaultProcessInstanceManagerFactory.class.getName()); |
|
|
|
| properties.put("drools.processSignalManagerFactory" ,DefaultSignalManagerFactory.class.getName()); |
|
|
|
| KnowledgeSessionConfiguration config = KnowledgeBaseFactory.newKnowledgeSessionConfiguration(properties); |
|
|
|
|
|
|
|
|
| ksession = kbase.newStatefulKnowledgeSession(config, null); |
|
|
|
| ksession.addEventListener(new CustomProcessEventListener(eventKsession)); |
|
|
|
| KnowledgeRuntimeLogger logger = KnowledgeRuntimeLoggerFactory.newFileLogger(ksession, "test"); |
|
|
|
|
|
|
|
|
| //insering Ticket |
|
|
|
| Ticket ticket = new Ticket(); |
|
|
|
| *ticket.setStatus("open");* |
|
|
|
| ticket.setContent("testing content"); |
|
|
|
| ticket.setOpeningDate(new Date()); |
|
|
|
| ticket.setIdTicket(1); |
|
|
|
|
|
|
|
|
| *ksession.insert(ticket);* |
|
|
|
| *ksession.fireAllRules();* |
*DROOLS CODE*
import java.util.Date
import java.util.List
#declare any global variables here
#declare Ticket
# @role(event)
#end
declare Server
idTicket : int
status : int
openingDate : Date // percentage
content: Date
end
dialect "mvel"
rule "Check 5mn condition"
when
$ticket:Ticket(status=="open");
then
System.out.println("New Ticket is opened");
end
Best Regards
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/726708#726708]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 2 months