Re: [rules-users] rules update not working properly .

2010-08-25 Thread sony . john
Hi All,
If i modify the rule as follows  it will work . what could be the issue .
Is it bug in rules 5.1

rule Referback


when

$workflow : Workflow(workflowActorId==2)
$workflow1 : Workflow()
$workflowactor11 : WorkflowActor(actorId== 1)
$workflowactor : WorkflowActor( $actoremail :actorEmail )
$workflowaction : WorkflowActions(currentUser==$actoremail 
actions=='referback', $prevActions : prevActions )
$workflowactor1 : WorkflowActor( actorId== 1  actorSign!=null)
  then
System.out.println(drl2 action finally  + $workflowaction.getActions() +
$actoremail +$workflowactor1.getActorEmail() + $prevActions +
$workflow.getWorkflowActorId()
);
$workflow.setWorkflowActorId(1);
$workflowactor1.setActorSign(null);
$workflowaction.setActions(not need further actions);
System.out.println(worklfow id  + $workflow.getWorkflowActorId() +
$workflowactor1.getActorId() ++ $workflowactor1.getActorSign());
$workflow1.setWorkflowActorId(0);
$workflowactor11.setActorSign(null);
update($workflowactor1);
update($workflowaction);
update($workflow);
update($workflow1);
update($workflowactor11);
end
Thanks in advance.



   
 sony.j...@kie.com 
 .sg   
 Sent by:   To 
 rules-users-bounc rules-users@lists.jboss.org 
 e...@lists.jboss.or  cc 
 g 
   Subject 
   [rules-users] rules update not  
 08/25/2010 02:02  working properly .  
 PM
   
   
 Please respond to 
 Rules Users List  
 rules-us...@list 
   s.jboss.org
   
   





Hi All,
When i try to update three object  in rules its  changes the values in
rules . But after update its not reflecting on my calling code. But
workflowAction object  has been updated.
What could be the problem anything i missed out here.
Please help me .

rule Referback


when

$workflow : Workflow(workflowActorId==2)
$workflowactor : WorkflowActor( $actoremail :actorEmail )
$workflowaction : WorkflowActions(currentUser==$actoremail 
actions=='referback', $prevActions : prevActions )
$workflowactor1 : WorkflowActor( actorId== 1  actorSign!=null)
  then
System.out.println(drl2 action finally  + $workflowaction.getActions() +
$actoremail +$workflowactor1.getActorEmail() + $prevActions +
$workflow.getWorkflowActorId()
);
$workflow.setWorkflowActorId(1);
$workflowactor1.setActorSign(null);
$workflowaction.setActions(not need further actions);
System.out.println(worklfow id  + $workflow.getWorkflowActorId() +
$workflowactor1.getActorId() ++ $workflowactor1.getActorSign());

update($workflowactor1);
update($workflowaction);
update($workflow);
end
Thanks in advance
Regards


Information in this e-mail is intended solely for the person(s) to whom it
is addressed and may contain confidential information. If you are not the
intended recipient, please notify the sender and delete this e-mail message
and any other record of it from your system immediately. You should not
disclose or disseminate the information to any person, use it for any
purpose or store or copy the information in any form or manner.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
__


Information in this e-mail is intended solely for the person(s) to whom it is 
addressed and may contain confidential information. If you are not the intended 
recipient, please notify the sender and delete this e-mail message and any 
other record of it from your system immediately. You should not disclose or 
disseminate the information to any person, use it for any purpose or store or 
copy the information in any form or manner.  

[rules-users] rules update not working properly .

2010-08-24 Thread sony . john

Hi All,
When i try to update three object  in rules its  changes the values in
rules . But after update its not reflecting on my calling code. But
workflowAction object  has been updated.
What could be the problem anything i missed out here.
Please help me .

rule Referback


when

$workflow : Workflow(workflowActorId==2)
$workflowactor : WorkflowActor( $actoremail :actorEmail )
$workflowaction : WorkflowActions(currentUser==$actoremail 
actions=='referback', $prevActions : prevActions )
$workflowactor1 : WorkflowActor( actorId== 1  actorSign!=null)
  then
System.out.println(drl2 action finally  + $workflowaction.getActions() +
$actoremail +$workflowactor1.getActorEmail() + $prevActions +
$workflow.getWorkflowActorId()
);
$workflow.setWorkflowActorId(1);
$workflowactor1.setActorSign(null);
$workflowaction.setActions(not need further actions);
System.out.println(worklfow id  + $workflow.getWorkflowActorId() +
$workflowactor1.getActorId() ++ $workflowactor1.getActorSign());

update($workflowactor1);
update($workflowaction);
update($workflow);
end
Thanks in advance
Regards


Information in this e-mail is intended solely for the person(s) to whom it is 
addressed and may contain confidential information. If you are not the intended 
recipient, please notify the sender and delete this e-mail message and any 
other record of it from your system immediately. You should not disclose or 
disseminate the information to any person, use it for any purpose or store or 
copy the information in any form or manner.  
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users