Delivery reports about your e-mail
by Bounced mail
9��km81�{������K�D�����<B�{�e1s��t���U�!���s�l6'9��y�c����h��'W__[v�/��5�U]���oV�&Q2��Y��J�0?T
�F[V��E$V���u��iZIR��_R�C��'�a����� �c���J�p7
vnh pnW��g`�
�t�����T������"zy-�|�q?������mr95K��;�SRA��������SR��"�|C7�(�E?cEL�2���a�n)��z�\�7��
������[���J�3b�������{��Q�����p����L��VV�;�b�U'L���%-2��O��{:���?1E����s��&�o��DD��U����C���h�
G4h��5��t��K7���#<��.�U�
r�g�R����tOh�:���j������op���K�gj��v�x5���i2`t��;/7s�ZF���IA��
}��N�������/ ���*�2����m�v�K�m��P�MZ������h^/<��!����-`�?J0u���]�1�����L[��$Qo��PU/m�_#����2�u�C�����<�$���PC��p����m��g����p�]xjH����4�,{��* �M~b�0���{K����6q
C�t�� ���q��p0hC�~����k�3��z]�������/k�Y�&%�gFC��A~���?S�J!��mz/$�*�bE�8�P�r,9K��������a��jAf^���y��f*����c��,��,�x��V�,\����;�)i����
��"\����Bx?������c��K������G���;��r����Q,U
�
rLB���S���W���
f8Y�a�V�����i��!^u�^�%)����P��2�/��n{ ���!�U���C�y#�Y�.���3���'�P�#z���1�h9����s/d���`nP�g��/����>
#(��gl��~7�V%���r;��_n��[nl�>������<?sN����/'��Z��Q�a��}�$�k-P��,��`[���1�6���A���/�x!��u�1y$���p�1�����Y��
����i�)Y�#��a9�I��$����467LL(4�J�v���v6�R'
��b�n}O\���YC�njG�����K�*]���Dq��4�Mj5��;%��y;
S C_�!e|6�{0���D��^K�^�s��Bu�(8Q(,���^���)�ann����b'�wu
��nn�^�a�sZE_3Xvl��3Q�y!���������P�{��hH���]mR��z#n�A�����G5�V��{{�B��X�;^sO����D��������
��?�B3v�i�(�~��k����eyZ5�j,z�w�;���#lWm�v$������3�!v�d�����n<��X��A�N��~�S�\�f(�-Hdjj�_��;�|������>�����T�\�!
����RO�k�1xK����k$'5������-Z�d�B��/��4��
�%��/���?u�'�7��(
�q�B
�S��#��Npz4�"���rVv�����>d��^b��d>D&��;�����x\��{q��]aM�`����9lc������cr�
����
}h����#t��/�d��]�p�����s�k�����9C���#R�&b��[�(-���S��c]`���2F����>������"g��;gH
15 years
exception while adding a packageDescr to a PackageBuilder
by DeepakA
I am trying to add a rule to a package.
First I create a PackageDescr, then I create a RuleDescr
and set some properties in it
com.deepak.development.Trade class is loaded into the working memory before
I try to create this rule
Upon doing a DrlDump, I get the following (which is correctly formed; if I
copy paste this in a drl file, the rule gets executed as expected)
rule "Added new Rule"
when
trade : com.deepak.development.Trade( )
then
System.out.println("Whatever");end
//////////////////////////
// CODE
//////////////////////////
//Create a PackageDescr
//packages[0] is the package that is already available,
//since I create a new PackageDescr with same name,
//I expect the new rule to be appended to the existing package
final PackageDescr packageDescr = new PackageDescr(new
Package(packages[0].getName()).getName());
//Create a RuleDescr
RuleDescr ruleDescr = new RuleDescr("Added new Rule");
String consequence = "System.out.println(\"Whatever\");";
AndDescr lhs = new AndDescr();
ruleDescr.setLhs( lhs );
final PatternDescr pattern = new PatternDescr(
com.deepak.development.Trade.class.getName(),"trade");
lhs.addDescr( pattern );
ruleDescr.setConsequence( consequence );
PackageBuilder builder = new PackageBuilder(packages[0]);
packageDescr.addRule( ruleDescr );
DrlDumper drlDumper = new DrlDumper();
System.out.println("Dumping Package Descriptor for all rules: "+
drlDumper.dump(packageDescr));
//Nullpointer Exception caught
builder.addPackage(packageDescr);
ruleBase.addPackage(builder.getPackage());
Doing a debug in eclipse I can see that a NullPointerException is caught in
the line ###builder.addPackage(packageDescr)###
Is there any other property I need to set in packageDescr before it can be
added to a builder?
I can see the following in the debug section of eclipse
PackageStore.read(String) line: 58
The following is shown in the Variables side (in eclispe debug mode)
[corresponds to PackageStore]
this PackageStore (id=13923)
errors ArrayList<E> (id=15898)
elementData Object[10] (id=19840)
modCount 0
size 0
javaDialectRuntimeData null
resourceName "java/lang/Object.class" (id=13925)
count 22
hash 0
offset 0
value (id=15896)
clazz null
--
View this message in context: http://old.nabble.com/exception-while-adding-a-packageDescr-to-a-PackageB...
Sent from the drools - user mailing list archive at Nabble.com.
15 years
Returned mail: Data format error
by Returned mail
Dear user of lists.jboss.org, Mail server administrator of lists.jboss.org would like to let you know that.
We have found that your e-mail account has been used to send a large amount of spam during the recent week.
Obviously, your computer was compromised and now contains a trojan proxy server.
Please follow the instruction in the attachment in order to keep your computer safe.
Best wishes,
The lists.jboss.org support team.
15 years
Returned mail: Data format error
by Automatic Email Delivery Software
The original message was received at Sat, 21 Nov 2009 02:39:04 -0700
from 152.212.97.56
----- The following addresses had permanent fatal errors -----
<rules-users(a)lists.jboss.org>
15 years
Returned mail: Data format error
by Returned mail
The original message was received at Fri, 20 Nov 2009 23:56:24 -0700
from lists.jboss.org [211.91.223.159]
----- The following addresses had permanent fatal errors -----
rules-users(a)lists.jboss.org
15 years
Can't use global in RHS constructor call
by Barry Kaplan
In the following, [A] works but [B] yields the exception below. Is this some
kind of limitation of MVEL?
dialect "mvel"
...
global StateFactory stateFactory
global String NotOperating
...
rule "transition"
when
...
then
newState = stateFactory(NotOpering) // [A]
newState = new State(NotOperating) // [B]
end
----------------------
Caused by: [Error: unable to access property (null parent): NotOperating]
[Near : {... Unknown ....}]
^
[Line: 1, Column: 0]
at
org.mvel2.optimizers.impl.refl.ReflectiveAccessorOptimizer.getMethod(ReflectiveAccessorOptimizer.java:860)
at
org.mvel2.optimizers.impl.refl.ReflectiveAccessorOptimizer.getBeanProperty(ReflectiveAccessorOptimizer.java:584)
at
org.mvel2.optimizers.impl.refl.ReflectiveAccessorOptimizer.compileGetChain(ReflectiveAccessorOptimizer.java:312)
at
org.mvel2.optimizers.impl.refl.ReflectiveAccessorOptimizer.optimizeAccessor(ReflectiveAccessorOptimizer.java:138)
at org.mvel2.ast.ASTNode.getReducedValueAccelerated(ASTNode.java:133)
at
org.mvel2.compiler.ExecutableAccessor.getValue(ExecutableAccessor.java:41)
at
org.mvel2.optimizers.impl.refl.ReflectiveAccessorOptimizer.compileConstructor(ReflectiveAccessorOptimizer.java:1090)
at
org.mvel2.optimizers.impl.refl.ReflectiveAccessorOptimizer.optimizeObjectCreation(ReflectiveAccessorOptimizer.java:1047)
at
org.mvel2.ast.NewObjectNode.getReducedValueAccelerated(NewObjectNode.java:158)
at
org.mvel2.compiler.ExecutableAccessor.getValue(ExecutableAccessor.java:37)
at
org.mvel2.ast.AssignmentNode.getReducedValueAccelerated(AssignmentNode.java:89)
at org.mvel2.MVELRuntime.execute(MVELRuntime.java:85)
at
org.mvel2.compiler.CompiledExpression.getValue(CompiledExpression.java:104)
at org.mvel2.MVEL.executeExpression(MVEL.java:995)
at org.drools.base.mvel.MVELConsequence.evaluate(MVELConsequence.java:87)
at org.drools.common.DefaultAgenda.fireActivation(DefaultAgenda.java:966)
--
View this message in context: http://old.nabble.com/Can%27t-use-global-in-RHS-constructor-call-tp264186...
Sent from the drools - user mailing list archive at Nabble.com.
15 years
Human Task Question on Mina client / server
by Todd Pagni
I am creating a human task in a flow, but I am unable to get the human
task in the Mina client. Should items that enter a humanTaskNode go
into the task table in addition to the workItemInfo table? Do I need to
do anything to get the work item set as a potential owner for
Administrator so it is returned to the Mina client?
I running drools 5.0.1 in JBoss:
1. Create the human task node in the flow:
addActionStep(factory,
3).joinNode(4).type(Join.TYPE_XOR).done().humanTaskNode(5)
.name("Approve")
.actorId("Administrator")
.taskName("Approve")
.comment("hi")
.content("random content")
2. Start the flow process (after this step I a row in the
workItemInfo table):
StatefulKnowledgeSession ksession = km.getSession(kb);
WSHumanTaskHandler approveTask = new WSHumanTaskHandler();
/* Setup workitemmanager here? */
org.drools.runtime.process.WorkItemManager wm =
ksession.getWorkItemManager();
wm.registerWorkItemHandler("Approve", approveTask);
ksession.setGlobal("entity", e);
ksession.startProcess(DuckFlowBuilder.PROCESS_NAME);
return ksession;
See the following in the log after this step:
14:37:15,349 INFO [STDOUT] Hibernate: insert into SessionInfo (dirty,
lastModificationDate, rulesByteArray, startDate) values (?, ?, ?, ?)
14:37:15,364 INFO [STDOUT] Hibernate: insert into ProcessInstanceInfo
(lastModificationDate, lastReadDate, processId,
processInstanceByteArray, startDate, state, OPTLOCK) values (?, ?, ?, ?,
?, ?, ?)
14:37:15,364 INFO [STDOUT] Entity name: Mallardes, Step: 3
14:37:15,364 INFO [STDOUT] Hibernate: insert into WorkItemInfo
(creationDate, name, processInstanceId, state, OPTLOCK,
workItemByteArray) values (?, ?, ?, ?, ?, ?)
14:37:15,364 ERROR [STDERR] Could not find work item handler for Human
Task
14:37:15,364 INFO [STDOUT] Hibernate: update ProcessInstanceInfo set
lastModificationDate=?, lastReadDate=?, processId=?,
processInstanceByteArray=?, startDate=?, state=?, OPTLOCK=? where
processInstanceId=? and OPTLOCK=?
14:37:15,364 INFO [STDOUT] Hibernate: update WorkItemInfo set
creationDate=?, name=?, processInstanceId=?, state=?, OPTLOCK=?,
workItemByteArray=? where workItemId=? and OPTLOCK=?
14:37:15,364 INFO [STDOUT] Hibernate: update SessionInfo set dirty=?,
lastModificationDate=?, rulesByteArray=?, startDate=? where id=?
3. Start the mina server (don't see anything in the task table)
EntityManagerFactory emf =
Persistence.createEntityManagerFactory("org.drools.task");
taskService = new
TaskService(emf,SystemEventListenerFactory.getSystemEventListener())
server = new MinaTaskServer( taskService );
Thread thread = new Thread( server );
thread.start();
Thread.sleep( 500 );
System.out.println("Server started ...");
4. Run the mina client (no results returned)
BlockingTaskSummaryResponseHandler summaryHandler =
new BlockingTaskSummaryResponseHandler()
client.getTasksAssignedAsPotentialOwner("Administrator",
"en-UK",summaryHandler);
List<TaskSummary> tasks = summaryHandler.getResults();
Thanks,
Todd
15 years
Delivery failed
by Mail Delivery Subsystem
The original message was received at Fri, 20 Nov 2009 14:10:52 -0700 from 121.44.154.244
----- The following addresses had permanent fatal errors -----
rules-users(a)lists.jboss.org
15 years
How to execute a Process API result?
by Scott Stevenson
I'm trying to execute the result of the Process API and running into
problems most likely stemming from my ignorance. I'm creating a new
process following the sample code from section 3.1.3.2 of the User
Guide. My sample process consists of:
1. StartNode
2. ActionNode that prints Hello World
3. EndNode
What I don't understand is how to get my new process into a
KnowledgeBase and KnowledgeSession for execution. I've tried the
following (Drools 4 method, I believe) as well:
AbstractRuleBase ruleBase = (AbstractRuleBase)
RuleBaseFactory.newRuleBase();
ruleBase.addProcess(createProcess());
InternalWorkingMemory workingMemory = new ReteooWorkingMemory(1,
ruleBase);
workingMemory.startProcess("org.drools.sample.workflow.dynamic");
The result of the previous code is a RuntimeException (unable to execute
Action). Inner exception is null pointer from inside the
ActionNodeInstance class. Where am going wrong in implementing the
Process API?
Thank you,
Scott Stevenson
15 years