Re: [rules-users] Guvnor guided editor problem - add more options

2011-06-22 Thread Michael Anstis
I believe we have managed to account for the missing pencil icon.

AFAIK, Marros is experiencing difficulties installing Guvnor 5.1 and Jarno
reports being able to replicate the problem with Guvnor standalone 5.1
(although states they get the pen icon so I'm not clear on the actual
problem).

One by one, please advise if you've been able to install Guvnor 5.1 and
whether you get the pen icon and can select Formulae.

Thanks,

2011/6/22 jarno niemelä jar...@iki.fi

 I have managed to reproduce the problem with drools guvnor standalone 5.1.
 Or actually i get the pen icon on my laptop while Pekka does not.

 Same windows 7 same FireFox 4
 On Jun 21, 2011 6:14 PM, Michael Anstis michael.ans...@gmail.com
 wrote:
  lol - glad I could help ;)
 
  java.util.zip.Zipexception: invalid block type sounds like the WAR file
 is
  somehow corrupt.
 
  Where did you get it from (and can you re-try?). Send me the link (and
 what
  AS you're using) and I'll try here too
 
  Cheers,
 
  Mike
 
  On 21 June 2011 13:07, marros martin.ros...@vships.com wrote:
 
  Hi Mike,
 
  Thanks for your advice. I have downloaded drools-5.1.1-guvnor.war and
 then
  copied it to the Jboss Deploy directory
  On the JBoss server screen I saw it attempting to deploy but then it
  failed
  with
 
  Deplyment Exception: invalid block type; - nested throwable:
  (java.util.zip.Zipexception: invalid block type) at
  org.jboss.web.AbstractWebContainer.init(AbstractWebContainer.java:374)
 
 
  Now I cannot restart Drools
 
  -
  --
  Best Regards
 
  Marros
  --
  View this message in context:
 
 http://drools.46999.n3.nabble.com/Guvnor-guided-editor-problem-add-more-options-tp3087495p3090362.html
  Sent from the Drools: User forum mailing list archive at Nabble.com.
  ___
  rules-users mailing list
  rules-users@lists.jboss.org
  https://lists.jboss.org/mailman/listinfo/rules-users
 

 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users


___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Rule Templates - comma separated data

2011-06-22 Thread Witham, Darren
Thanks W - I can work with this

From: rules-users-boun...@lists.jboss.org 
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Wolfgang Laun
Sent: 21 June 2011 18:40
To: Rules Users List
Subject: Re: [rules-users] Rule Templates - comma separated data

The operators in and not in operate on parenthesized lists of operands. 
They can be used with a single template parameter expanding as a list.

   Person( likes in ( apple, banana, chili ) )

is the same as

  Person( likes == apple || == banana || == chili )

-W


On 21 June 2011 18:34, Witham, Darren 
darren.wit...@citi.commailto:darren.wit...@citi.com wrote:
I have successfully generated a .drl file from a decision table. The column 
headers in this table made use of the forall(||) construct which happily parsed 
the corresponding comma separated data in the relevant spreadsheet cell to nice 
|| separated conditions.

We have since decided to use the template approach so we can store rule data in 
a db. We ideally want to store this data as key/value pairs in a db table where 
the values may contain comma separated data. The intention being these values 
would be processed as per the decision table.

How is this achieved using a template ? I note that a column can be denoted as 
an array column by adding [] i.e.

template header
column[]


However, although this appears create an ArrayColumn parser, and splits the 
comma separated data when running through a debugger, any attempt to access it 
in the template falls over in mvel code trying to call HashMap.column


Any examples on how to set this up ?

Thx


___
rules-users mailing list
rules-users@lists.jboss.orgmailto:rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] problems with process executions, constraints, and multiple sessions

2011-06-22 Thread Jordi Alvarez
Hello,

I am involved in a project in which we are using Drools as the BPM.

We are experiencing some problems with wait state nodes. More concretely,
the problem seems to deal with
the execution of constraints in those wait states.

Let me first describe our context:

We are using JPA with Hibernate and Oracle. Our process instances are all
identified by a
business identifier (a string). This business identified would correspond to
the identifier of a case;
and a case normally has associated a process instances (and subprocesses of
that process).

Additionally, the processes we have developed make extensive
use of timers and wait states with constraints that refer to the process
instance and other facts that
we are using as events.

We have a stateful session for every case / business identifier.

We have a main process that calls subprocesses. As we said, in that process
and subprocesses we use wait states.
The constraints in those wait states are waiting for a fact to be inserted
in the stateful session. Once
the corresponding fact is inserted, the corresponding constraint should be
activated.

At this point is where the problem arises. All the constraints have been
unit tested with no problem at all.

But we have detected some problems that can arise when there is more that
one process waiting in the same wait state
(every process in a different Drools stateful session).

The situation is as follows:

1. There is a main process instance MPA with business id BA that has a
subprocess SPA (also with the same business id).
This subprocess is waiting in a given wait state W1 (these processes are
running in the stateful
session corresponding to the business id BA, from now on SA).

2. There is a second main process and subprocess with business id BB. The
state for these second set of processes is the
same one, and they are running in a second stateful session (the one for
business id BB), from now on SB.

3. A fact FA is inserted in SA. This fact makes the constaint in SPA true,
which makes SPA to leave the wait
state and continue with the execution.

Then, in some situations stateful session SA tries to also continue SPB,
which runs in a different stateful session
(that of SB). That, of course, produces some posterior problems that were
the origin of our investigations.
After some more deep investigations, it seems that the reason session SA
tries to continue SPB is that the constraint
in W1 for SPA gets activated twice. We have detected (and posteriorly
corrected) some situations in which this happens.

For example: the process in the constraint was associated not only to SPA
but to other processes in SA (the main process SPA for example).
we corrected this and obtained a better behaviour in which the problem is
more difficult to reproduce.

We have tried also to replace constraints with rule nodes, and set the
lock-on-active and no-loop. The results were a bit different
but seemed not to avoid the problem.

So, there is someone that has experimented situations similar to the
described above? Additionally, can someone from the drools
team give a bit of light to this situation? Why the reasonings in a stateful
session are interacting with processes running on a different
stateful session?

many thanks in advance,
Jordi Alvarez
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Drools Server - Setup Issues

2011-06-22 Thread agarwalk
I am trying to setup drools server but I am running hell lot of issues.

Can you please help me in getting latest drools server war and a sample
example of how to write a client.

This will help me a lot because it has killed my lots of time.



--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Server-Setup-Issues-tp3094724p3094724.html
Sent from the Drools: User forum mailing list archive at Nabble.com.___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Drools Server - Setup Issues

2011-06-22 Thread Abhay B. Chaware
To setup drools-server :


 1.  Download droolsjbpm-integration-distribution-5.2.0.M2.zip from drools site
 2.  extract the zip file and locate drools-came-server-5.2.0M2.war in the 
binaries folder.
 3.  Copy the war to the tomcat/webapps directory
 4.  Extract the war file in webapps directory
 5.  copy your model classes and the rules file ( .drl )  into the classes 
folder inside this web-app
 6.  Start tomcat

I wrote a PHP client to access the rules service.

$url = 
http://localhost:8090/drools-server/kservice/rest/execute;
$post_data = file_get_contents(drools-request-ts.xml);
$headers = array(Content-Type = 'text/plain; 
charset=utf-8',Accept = text/plain; charset=utf-8);
$rta = http_post_data($url, $post_data,array('headers' 
= $headers ));
echo Response : .$rta;

drools-request-ts.xml  looks something like this :

?xml version=1.0 encoding=UTF-8?
batch-execution lookup=ksession1
 insert out-identifier=cat0
 com.ts.Category
categoryId1/categoryId
categoryNameArea/categoryName
parent10/parent1
 /com.ts.Category
  /insert
 insert out-identifier=conf
 com.ts.Configuration/
  /insert
   fire-all-rules/
 /batch-execution

gudluck !



From: rules-users-boun...@lists.jboss.org 
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of agarwalk
Sent: Wednesday, June 22, 2011 2:23 PM
To: rules-users@lists.jboss.org
Subject: [rules-users] Drools Server - Setup Issues

I am trying to setup drools server but I am running hell lot of issues. Can you 
please help me in getting latest drools server war and a sample example of how 
to write a client. This will help me a lot because it has killed my lots of 
time.

View this message in context: Drools Server - Setup 
Issueshttp://drools.46999.n3.nabble.com/Drools-Server-Setup-Issues-tp3094724p3094724.html
Sent from the Drools: User forum mailing list 
archivehttp://drools.46999.n3.nabble.com/Drools-User-forum-f47000.html at 
Nabble.com.

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Guvnor 5.2 CR1 under IE8

2011-06-22 Thread Vincent Legendre
Done : https://issues.jboss.org/browse/GUVNOR-1485

I have tried with previous versions too, to see where the problem appears.
- 5.2.0 M2 and CR1 are the same for this problem : replaced icons 
are hidden in some place
- 5.2.0 M1 : even main page icons (top banner and search tab at 
least) have the problem

I posted a screenshot for M1, and for M2/CR1.
May be the evolution can help you to find the problem.



Le 21/06/2011 09:20, Jervis Liu a écrit :
 Hi can you create a jira with some screen shots please? I dont have an
 environment that can run IE8 at the moment, but I ll look into this
 problem (and other similar problems) as soon as I have the env ready.

 Thanks,
 Jervis

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] What does guvnor do when importing a global DSL? a snapshot or a link?

2011-06-22 Thread James Gu
Hi, 

I am using guvnor-5.2.0.CR1-jboss-as-5.1.

I created a DSL file in global area and imported it into package
testpackage. I created a business rule based on it in package.

Today I added some new items in the DSL file and found I can't use it in the
business rule in package, the new item is not in the select list. I created
a business rule in global area and I can see the new item. It seems that the
package keeps a snapshot for global area, not a link. Is this a bug? If not,
how can I update the snapshot for package. I tried to import it again but
get error the assert is already imported.

Thanks,
James


--
View this message in context: 
http://drools.46999.n3.nabble.com/What-does-guvnor-do-when-importing-a-global-DSL-a-snapshot-or-a-link-tp3095102p3095102.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Drools' use of hashCode

2011-06-22 Thread M. H.
And yet the funny thing is it does affect the other fact:
if you run this without the hashCode and equals method, it works fine, but
if you run it with hashCode and equals overriden, the second rule won't be
executed.
You mentionned before the usual rules for hashCode and equals, what are they
appart from equals=equal hashCodes? I don't understand why this works in a
case and not in the other, so maybe I'm missing something here?

Thanks,

--
View this message in context: 
http://drools.46999.n3.nabble.com/rules-users-Drools-use-of-hashCode-tp3090455p3095159.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Guvnor Rules!!!

2011-06-22 Thread Sumeet Karawal

Hi,

I am not able to run Guvnor rules on eclipse. I have read the Knowledge
Agent part from the user guide but not able to get through.

I am doing the following steps:

   I have created a Java class in eclipse and exported it as a .jar file.
   Then I import it in Guvnor under the upload POJO Model.
   I create some rules for it
   Then I build the package and get the following URLs :

URL for package documentation:

   
 
http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/com.JBoss/LATEST/documentation.pdf
 (Embedded 

 image moved   

 to file:  

 pic32197.gif) 

   


URL for package source:

 
 
http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/com.JBoss/LATEST.drl
 (Embedded 

   image moved   

   to file:  

   pic02151.gif) 

 


URL for package binary:

 
 
http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/com.JBoss/LATEST
 (Embedded 

   image moved   

   to file:  

   pic18827.gif) 

 


URL for running tests:

   
 
http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/com.JBoss/LATEST/SCENARIOS
 (Embedded 

 image moved   

 to file:  

 pic20956.gif) 

   


Change Set:

   
 
http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/com.JBoss/LATEST/ChangeSet.xml
 (Embedded 

 image moved   

 to file:  

 pic21205.gif) 

   



I have gone through use  of KnowledgeAgent in the user guide but not
getting how to do it. I mean what code should I write to get the
KnowledgeBase from these URLs.

It would be really helpful if someone could guide me on this.


Thanks  Regards,
Sumeet Karawal
Mailto: sumeet.kara...@tcs.com
=-=-=
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you


attachment: pic32197.gifattachment: pic02151.gifattachment: pic18827.gifattachment: pic20956.gifattachment: pic21205.gif___
rules-users mailing list
rules-users@lists.jboss.org

Re: [rules-users] How to the setdrools.dialect.mvel.strictusingDrools+Spring?

2011-06-22 Thread Nicolás Sanchez

Hi,

Sorry for the late answer and Thx for your help, but I talked with Edson and
he told me that the exception was because of a bug. He is going to set the
issue in Jira to test this.

Again thx for your time.

Regards, 

Nicolas

--
View this message in context: 
http://drools.46999.n3.nabble.com/rules-users-How-to-the-set-drools-dialect-mvel-strict-using-Drools-Spring-tp3064468p3095438.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Drools Server - Setup Issues

2011-06-22 Thread Mauricio Salatino
Yes, if you don't want to create a client you can just use SOAP-UI to test
the services and see if everything is working.
Can you please provide a stacktrace about your error, so we can fix that in
the master repository?
I was working with drools server to provide an easy set up. As described by
Adhay:

   1. Download droolsjbpm-integration-distribution-5.2.0.M2.zip from drools
   site
   2. extract the zip file and locate “drools-came-server-5.2.0M2.war in the
   “binaries” folder.
   3. Copy the war to the tomcat/webapps directory
   4. Extract the war file in webapps directory
   5. copy your model classes and the rules file ( .drl )  into the
   “classes” folder inside this web-app
   6. Start tomcat

That should do the trick :)
Greetings.

PS: thanks Adhay!


2011/6/22 Abhay B. Chaware abhay.chaw...@kpitcummins.com

   To setup drools-server :

 ** **

1. Download droolsjbpm-integration-distribution-5.2.0.M2.zip from
drools site
2. extract the zip file and locate “drools-came-server-5.2.0M2.war in
the “binaries” folder.
3. Copy the war to the tomcat/webapps directory
4. Extract the war file in webapps directory
5. copy your model classes and the rules file ( .drl )  into the
“classes” folder inside this web-app
6. Start tomcat

 ** **

 I wrote a PHP client to access the rules service.

 ** **

 $url = ”
 http://localhost:8090/drools-server/kservice/rest/execute”

 $post_data =
 file_get_contents(drools-request-ts.xml);

 $headers = array(Content-Type = 'text/plain;
 charset=utf-8',Accept = text/plain; charset=utf-8);

 $rta = http_post_data($url,
 $post_data,array('headers' = $headers ));

 echo Response : .$rta;

 ** **

 drools-request-ts.xml  looks something like this :

 ** **

 ?xml version=1.0 encoding=UTF-8?

 batch-execution lookup=ksession1

  insert out-identifier=cat0

  com.ts.Category

 categoryId1/categoryId

 categoryNameArea/categoryName

 parent10/parent1

  /com.ts.Category

   /insert

  insert out-identifier=conf

  com.ts.Configuration/

   /insert

fire-all-rules/

  /batch-execution

 ** **

 gudluck !

 ** **

 ** **
  --

 *From:* rules-users-boun...@lists.jboss.org [mailto:
 rules-users-boun...@lists.jboss.org] *On Behalf Of *agarwalk
 *Sent:* Wednesday, June 22, 2011 2:23 PM
 *To:* rules-users@lists.jboss.org
 *Subject:* [rules-users] Drools Server - Setup Issues

 ** **

 I am trying to setup drools server but I am running hell lot of issues. Can
 you please help me in getting latest drools server war and a sample example
 of how to write a client. This will help me a lot because it has killed my
 lots of time. 
  --

 View this message in context: Drools Server - Setup 
 Issueshttp://drools.46999.n3.nabble.com/Drools-Server-Setup-Issues-tp3094724p3094724.html
 Sent from the Drools: User forum mailing list 
 archivehttp://drools.46999.n3.nabble.com/Drools-User-forum-f47000.htmlat 
 Nabble.com.
 

 This message contains information that may be privileged or confidential
 and is the property of the KPIT Cummins Infosystems Ltd. It is intended only
 for the person to whom it is addressed. If you are not the intended
 recipient, you are not authorized to read, print, retain copy, disseminate,
 distribute, or use this message or any part thereof. If you receive this
 message in error, please notify the sender immediately and delete all copies
 of this message. KPIT Cummins Infosystems Ltd. does not accept any liability
 for virus infected mails.

 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users




-- 
 - CTO @ http://www.plugtree.com
 - MyJourney @ http://salaboy.wordpress.com
 - Co-Founder @ http://www.jbug.com.ar

 - Salatino Salaboy Mauricio -
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Troubles with Oryx designer in Guvnor - jBPM 5.1.CR1

2011-06-22 Thread roger
Hi, Tihomir

I'm having the same problem, using guvnor-distribution-5.2.0.CR1 over
apache-tomcat-6.0.32 and using designer-1.0.0.049-SNAPSHOT.

I run frames[3].ORYX.EDITOR.getSerializedJSON()  as you suggested, and what
I got seems like a dump, not an xml.

here it is:


{resourceId:8b2cb280-c92c-4a61-81eb-8daddd596f87,properties:{name:,documentation:,executable:true,package:,vardefs:,imports:,id:,version:,author:,language:English,namespaces:,targetnamespace:http://www.omg.org/bpmn20,expressionlanguage:http://www.w3.org/1999/XPath,typelanguage:http://www.w3.org/2001/XMLSchema,creationdate:,modificationdate:},stencil:{id:BPMNDiagram},childShapes:[{resourceId:_6D6FFF65-546C-401D-9149-8F431AF6B861,properties:{name:,documentation:,eventdefinitionref:,eventdefinitions:,dataoutputassociations:,dataoutput:,outputset:,bgcolor:#ff,trigger:None},stencil:{id:StartNoneEvent},childShapes:[],outgoing:[{resourceId:_B0A0101E-9537-470B-B53C-355E2865DC7B}],bounds:{lowerRight:{x:77,y:275},upperLeft:{x:47,y:245}},dockers:[]},{resourceId:_273C4CFA-03B8-4852-AEEF-DBA2449DEE87,properties:{name:,document!

ation:,categories:,startquantity:1,completionquantity:1,isforcompensation:,assignments:,callacitivity:,tasktype:None,implementation:webService,resources:,messageref:,operationref:,instantiate:,script:,script_language:,inmessagetype:,outmessagetype:,servicename:,namespace:,operation:,porttype:,wsdlurl:,bgcolor:#b1c2d6,looptype:None,testbefore:,loopcondition:,loopmaximum:,loopcardinality:,loopdatainput:,loopdataoutput:,inputdataitem:,outputdataitem:,behavior:all,complexbehaviordefinition:,completioncondition:,onebehavioreventref:signal,nonebehavioreventref:signal,properties:,datainputset:,dataoutputset:,ruleflowgroup:,onentryactions:,onexitactions:,taskname:,actors:},stencil:{id:Task},childShapes:[],outgoing:[{resourceId:_94899F0B-AD06-4951-9BF6-C66CA861D228}],bounds:{lowerRight:{x:37!
 1,y:168},upperLeft:{x:271,y:88}},dockers:[]},{resou!
 rceId:

_E6665170-4377-4CB2-BADC-6013A92B0DE8,properties:{name:,documentation:,eventdefinitionref:,eventdefinitions:,datainputassociations:,datainput:,inputset:,bgcolor:#ff,trigger:None},stencil:{id:EndNoneEvent},childShapes:[],outgoing:[],bounds:{lowerRight:{x:570,y:179},upperLeft:{x:542,y:151}},dockers:[]},{resourceId:_B0A0101E-9537-470B-B53C-355E2865DC7B,properties:{name:,documentation:,conditiontype:None,conditionexpression:,isimmediate:,showdiamondmarker:},stencil:{id:SequenceFlow},childShapes:[],outgoing:[{resourceId:_273C4CFA-03B8-4852-AEEF-DBA2449DEE87}],bounds:{lowerRight:{x:270.6171875,y:260},upperLeft:{x:77,y:128}},dockers:[{x:15,y:15},{x:174,y:260},{x:174,y:128},{x:50,y:40}],target:{resourceId:_273C4CFA-03B8-4852-AEEF-DBA2449DEE87}},{resourceId:_94899F0B-AD06-4951-9BF6-C66CA861D228,properties:{name:,documentatio!

n:,conditiontype:None,conditionexpression:,isimmediate:,showdiamondmarker:},stencil:{id:SequenceFlow},childShapes:[],outgoing:[{resourceId:_E6665170-4377-4CB2-BADC-6013A92B0DE8}],bounds:{lowerRight:{x:541.0078125,y:165},upperLeft:{x:371.75390625,y:128}},dockers:[{x:50,y:40},{x:456.5,y:128},{x:456.5,y:165},{x:14,y:14}],target:{resourceId:_E6665170-4377-4CB2-BADC-6013A92B0DE8}}],bounds:{lowerRight:{x:1485,y:1050},upperLeft:{x:0,y:0}},stencilset:{url:bpmn2.0jbpm,namespace:http://b3mn.org/stencilset/bpmn2.0#},ssextensions:[]};




Regards,
Roger

--
View this message in context: 
http://drools.46999.n3.nabble.com/Troubles-with-Oryx-designer-in-Guvnor-jBPM-5-1-CR1-tp3088609p3096101.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Troubles with Oryx designer in Guvnor - jBPM 5.1.CR1

2011-06-22 Thread Tihomir Surdilovic
Hi Roger, you are using an older designer version and should definitely 
update. The latest  1.0.0.052 is available here: 
http://sourceforge.net/projects/jbpm/files/designer/designer-1.0.0.052/. 
Let me know if you run into any issues with that version and Guvnor 
5.2.0.CR1.
As far as the dump goes, that is the JSON representation of your BPMN2 
process in the designer.
Thanks.

On 6/22/11 11:42 AM, roger wrote:
 Hi, Tihomir

 I'm having the same problem, using guvnor-distribution-5.2.0.CR1 over
 apache-tomcat-6.0.32 and using designer-1.0.0.049-SNAPSHOT.

 I run frames[3].ORYX.EDITOR.getSerializedJSON()  as you suggested, and what
 I got seems like a dump, not an xml.

 here it is:


 {resourceId:8b2cb280-c92c-4a61-81eb-8daddd596f87,properties:{name:,documentation:,executable:true,package:,vardefs:,imports:,id:,version:,author:,language:English,namespaces:,targetnamespace:http://www.omg.org/bpmn20,expressionlanguage:http://www.w3.org/1999/XPath,typelanguage:http://www.w3.org/2001/XMLSchema,creationdate:,modificationdate:},stencil:{id:BPMNDiagram},childShapes:[{resourceId:_6D6FFF65-546C-401D-9149-8F431AF6B861,properties:{name:,documentation:,eventdefinitionref:,eventdefinitions:,dataoutputassociations:,dataoutput:,outputset:,bgcolor:#ff,trigger:None},stencil:{id:StartNoneEvent},childShapes:[],outgoing:[{resourceId:_B0A0101E-9537-470B-B53C-355E2865DC7B}],bounds:{lowerRight:{x:77,y:275},upperLeft:{x:47,y:245}},dockers:[]},{resourceId:_273C4CFA-03B8-4852-AEEF-DBA2449DEE87,properties:{name:,docume!
 nt!

 ation:,categories:,startquantity:1,completionquantity:1,isforcompensation:,assignments:,callacitivity:,tasktype:None,implementation:webService,resources:,messageref:,operationref:,instantiate:,script:,script_language:,inmessagetype:,outmessagetype:,servicename:,namespace:,operation:,porttype:,wsdlurl:,bgcolor:#b1c2d6,looptype:None,testbefore:,loopcondition:,loopmaximum:,loopcardinality:,loopdatainput:,loopdataoutput:,inputdataitem:,outputdataitem:,behavior:all,complexbehaviordefinition:,completioncondition:,onebehavioreventref:signal,nonebehavioreventref:signal,properties:,datainputset:,dataoutputset:,ruleflowgroup:,onentryactions:,onexitactions:,taskname:,actors:},stencil:{id:Task},childShapes:[],outgoing:[{resourceId:_94899F0B-AD06-4951-9BF6-C66CA861D228}],bounds:{lowerRight:{x:3!
 7!
   1,y:168},upperLeft:{x:271,y:88}},dockers:[]},{resou!
   rceId:

 _E6665170-4377-4CB2-BADC-6013A92B0DE8,properties:{name:,documentation:,eventdefinitionref:,eventdefinitions:,datainputassociations:,datainput:,inputset:,bgcolor:#ff,trigger:None},stencil:{id:EndNoneEvent},childShapes:[],outgoing:[],bounds:{lowerRight:{x:570,y:179},upperLeft:{x:542,y:151}},dockers:[]},{resourceId:_B0A0101E-9537-470B-B53C-355E2865DC7B,properties:{name:,documentation:,conditiontype:None,conditionexpression:,isimmediate:,showdiamondmarker:},stencil:{id:SequenceFlow},childShapes:[],outgoing:[{resourceId:_273C4CFA-03B8-4852-AEEF-DBA2449DEE87}],bounds:{lowerRight:{x:270.6171875,y:260},upperLeft:{x:77,y:128}},dockers:[{x:15,y:15},{x:174,y:260},{x:174,y:128},{x:50,y:40}],target:{resourceId:_273C4CFA-03B8-4852-AEEF-DBA2449DEE87}},{resourceId:_94899F0B-AD06-4951-9BF6-C66CA861D228,properties:{name:,documentat!
 io!

 n:,conditiontype:None,conditionexpression:,isimmediate:,showdiamondmarker:},stencil:{id:SequenceFlow},childShapes:[],outgoing:[{resourceId:_E6665170-4377-4CB2-BADC-6013A92B0DE8}],bounds:{lowerRight:{x:541.0078125,y:165},upperLeft:{x:371.75390625,y:128}},dockers:[{x:50,y:40},{x:456.5,y:128},{x:456.5,y:165},{x:14,y:14}],target:{resourceId:_E6665170-4377-4CB2-BADC-6013A92B0DE8}}],bounds:{lowerRight:{x:1485,y:1050},upperLeft:{x:0,y:0}},stencilset:{url:bpmn2.0jbpm,namespace:http://b3mn.org/stencilset/bpmn2.0#},ssextensions:[]};




 Regards,
 Roger

 --
 View this message in context: 
 http://drools.46999.n3.nabble.com/Troubles-with-Oryx-designer-in-Guvnor-jBPM-5-1-CR1-tp3088609p3096101.html
 Sent from the Drools: User forum mailing list archive at Nabble.com.
 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users




___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Troubles with Oryx designer in Guvnor - jBPM 5.1.CR1

2011-06-22 Thread roger
Hi, Tihomir

I've upgraded the designer, the problem continues, but the error is
different.

Here is the log. I'm creating a new Process named test, using a start event
(named start), a task (named task) and an end event called end.

After drawing this, I click File / Save Changes, and write something in
check in.

The log is:


INFO  22-06 14:42:35,093 (LoggingHelper.java:info:50)USER:guest CREATING
new asset name [Test] in package [mortgages]
*(null: -1, -1): Premature end of file.* /--- this happens after creating
the process, just when the designer starts. The remaining is logged when I
saving/
INFO  22-06 14:43:54,187 (LoggingHelper.java:info:50)USER:guest CHECKING
IN
asset: [Test] UUID: [88bd303c-f64f-453a-b82e-393262a465c3]
22/06/2011 14:43:54 org.apache.tomcat.util.http.Parameters processParameters
ADVERTENCIA: Parameters: Invalid chunk '' ignored.
### unmarshalling definitions!
*** creating : org.eclipse.emf.ecore.impl.EClassImpl@f18cc3 (name:
StartEvent) (
instanceClassName: null) (abstract: false, interface: false)
# added child elements: [org.eclipse.bpmn2.impl.StartEventImpl@14b389
(id: _
C05A3E62-8E55-4A80-A83B-E9E5DFFD17FA, anyAttribute: null) (name: Start)
(paralle
lMultiple: false) (isInterrupting: true)]
*** creating : org.eclipse.emf.ecore.impl.EClassImpl@19cad9d (name: Task)
(insta
nceClassName: null) (abstract: false, interface: false)
# added child elements: [org.eclipse.bpmn2.impl.StartEventImpl@14b389
(id: _
C05A3E62-8E55-4A80-A83B-E9E5DFFD17FA, anyAttribute: null) (name: Start)
(paralle
lMultiple: false) (isInterrupting: true),
org.eclipse.bpmn2.impl.TaskImpl@117280
a (id: _1BFA8EE7-BE43-4503-8798-787B69FFA0F5, anyAttribute: null) (name:
Task) (
completionQuantity: 1, isForCompensation: false, startQuantity: 1)]
*** creating : org.eclipse.emf.ecore.impl.EClassImpl@db06de (name: EndEvent)
(in
stanceClassName: null) (abstract: false, interface: false)
# added child elements: [org.eclipse.bpmn2.impl.StartEventImpl@14b389
(id: _
C05A3E62-8E55-4A80-A83B-E9E5DFFD17FA, anyAttribute: null) (name: Start)
(paralle
lMultiple: false) (isInterrupting: true),
org.eclipse.bpmn2.impl.TaskImpl@117280
a (id: _1BFA8EE7-BE43-4503-8798-787B69FFA0F5, anyAttribute: null) (name:
Task) (
completionQuantity: 1, isForCompensation: false, startQuantity: 1),
org.eclipse.
bpmn2.impl.EndEventImpl@145a915 (id: _4959AE26-9F09-427A-A1CA-A243167DF869,
anyA
ttribute: null) (name: End)]
*** creating : org.eclipse.emf.ecore.impl.EClassImpl@3f0860 (name:
SequenceFlow)
 (instanceClassName: null) (abstract: false, interface: false)
# added child elements: [org.eclipse.bpmn2.impl.StartEventImpl@14b389
(id: _
C05A3E62-8E55-4A80-A83B-E9E5DFFD17FA, anyAttribute: null) (name: Start)
(paralle
lMultiple: false) (isInterrupting: true),
org.eclipse.bpmn2.impl.TaskImpl@117280
a (id: _1BFA8EE7-BE43-4503-8798-787B69FFA0F5, anyAttribute: null) (name:
Task) (
completionQuantity: 1, isForCompensation: false, startQuantity: 1),
org.eclipse.
bpmn2.impl.EndEventImpl@145a915 (id: _4959AE26-9F09-427A-A1CA-A243167DF869,
anyA
ttribute: null) (name: End), org.eclipse.bpmn2.impl.SequenceFlowImpl@1e034c6
(id
: _0409FE92-D1C6-4CFC-A9A5-E78E93278A29, anyAttribute: null) (name: null)
(isImm
ediate: false)]
*** creating : org.eclipse.emf.ecore.impl.EClassImpl@3f0860 (name:
SequenceFlow)
 (instanceClassName: null) (abstract: false, interface: false)
# added child elements: [org.eclipse.bpmn2.impl.StartEventImpl@14b389
(id: _
C05A3E62-8E55-4A80-A83B-E9E5DFFD17FA, anyAttribute: null) (name: Start)
(paralle
lMultiple: false) (isInterrupting: true),
org.eclipse.bpmn2.impl.TaskImpl@117280
a (id: _1BFA8EE7-BE43-4503-8798-787B69FFA0F5, anyAttribute: null) (name:
Task) (
completionQuantity: 1, isForCompensation: false, startQuantity: 1),
org.eclipse.
bpmn2.impl.EndEventImpl@145a915 (id: _4959AE26-9F09-427A-A1CA-A243167DF869,
anyA
ttribute: null) (name: End), org.eclipse.bpmn2.impl.SequenceFlowImpl@1e034c6
(id
: _0409FE92-D1C6-4CFC-A9A5-E78E93278A29, anyAttribute: null) (name: null)
(isImm
ediate: false), org.eclipse.bpmn2.impl.SequenceFlowImpl@a8eb85 (id:
_C7DFBD52-C6
AA-4B92-B1AB-3C252DD5E529, anyAttribute: null) (name: null) (isImmediate:
false)
]
*** creating : org.eclipse.emf.ecore.impl.EClassImpl@17b51e8 (name:
Definitions)
 (instanceClassName: null) (abstract: false, interface: false)
(null: 2, 504): cvc-datatype-valid.1.2.1:
'88bd303c-f64f-453a-b82e-393262a465c3'
 is not a valid value for 'NCName'.
(null: 2, 504): cvc-attribute.3: The value
'88bd303c-f64f-453a-b82e-393262a465c3
' of attribute 'id' on element 'bpmn2:definitions' is not valid with respect
to
its type, 'ID'.
(null: 3, 64): cvc-datatype-valid.1.2.1: '' is not a valid value for
'NCName'.
(null: 3, 64): cvc-attribute.3: The value '' of attribute 'id' on element
'bpmn2
:process' is not valid with respect to its type, 'ID'.
(null: 18, 67): cvc-datatype-valid.1.2.1: '' is not a valid value for
'QName'.
(null: 18, 67): cvc-attribute.3: The value '' of attribute 

Re: [rules-users] Troubles with Oryx designer in Guvnor - jBPM 5.1.CR1

2011-06-22 Thread Dan Seaver
Tihomir,
Thanks so much for your quick response. I apologize for not getting back to
you sooner, but somehow I didn't see your reply until a couple minutes ago.

Yes, Guvnor is running on localhost:8080. 
(http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/Guvnor.html)

I'm using the jbpm-install version of Designer. 

The results of getSerializedJSON() were very much like Roger's, so I swapped
in the 052 version and now the diagram can be saved and reopened.

Don't know why I didn't think of doing that earlier.

Thanks again Tihomir.

--
View this message in context: 
http://drools.46999.n3.nabble.com/Troubles-with-Oryx-designer-in-Guvnor-jBPM-5-1-CR1-tp3088609p3097910.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] Filtering activations in stateless sessions

2011-06-22 Thread drdaveg
Creating an AgendaFilter in stateful sessions is straightforward.  Although
there are many API's that seem like they would foster discarding /filtering
rule activations in stateless sessions, each family of API seems to be
missing a key method to filter activations.

Can anyone suggest a way that works to filter rules from firing in stateless
sessions?  

Command executors can use FireAllRules on a stateless session, but not with
an AgendaFilter.
Event listeners can detect rule activation events, but there doesn't seem a
way to ignore (e.g., not accept) an activation.

Perhaps this can be accomplished by explicitly disposing of an activation
from a listener that detects this, but this approach seems like it could
have other consequences.  Thanks!

--
View this message in context: 
http://drools.46999.n3.nabble.com/Filtering-activations-in-stateless-sessions-tp3097961p3097961.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] OutOfMemoryError happens when dynamic loading of Rules from Guvnor frequently

2011-06-22 Thread Oliver Liu
I read the source code of org.drools.agent.impl.KnowledgeAgentImpl, in this
segment
private void rebuildResources(ChangeSetState changeSetState) {
...
/*
 * Rebuild a new knowledge base. Try to use the old configuration if
 * possible
 */
if (this.kbase != null) {
this.kbase =
KnowledgeBaseFactory.newKnowledgeBase(((InternalRuleBase)
((KnowledgeBaseImpl) this.kbase).ruleBase).getConfiguration());
} else {
this.kbase = KnowledgeBaseFactory.newKnowledgeBase();
}
...
}

Before giving a new value to  this.kbase, i think maybe we should release
resource in it, so i tried to change code like this:
[6/21/2011 12:34:16 PM] liuyy_skype: if (this.kbase != null) {
for(KnowledgePackage packs : this.kbase.getKnowledgePackages())
{ 
 KnowledgePackageImp kpkg = ((KnowledgePackageImp)packs);
for (Rule rule : kpkg.pkg.getRules()) {
 removeKnowledgeDefinitionFromBase(rule);
}
for (Process process : kpkg.pkg.getRuleFlows().values()) {
 removeKnowledgeDefinitionFromBase(process);
}
for (Function function : kpkg.pkg.getFunctions().values()) {
 removeKnowledgeDefinitionFromBase(function);
}
for (TypeDeclaration dec :
kpkg.pkg.getTypeDeclarations().values()) { 
 removeKnowledgeDefinitionFromBase(dec);
}
   
this.kbase.removeKnowledgePackage(kpkg.getName());
kpkg.pkg.clear();   
Runtime.getRuntime().gc();
}

this.kbase =
KnowledgeBaseFactory.newKnowledgeBase(((InternalRuleBase)
((KnowledgeBaseImpl) this.kbase).ruleBase).getConfiguration());
} else {
this.kbase = KnowledgeBaseFactory.newKnowledgeBase();
}

Then i run my code, the memory indeed increased not so much like before, but
still rise. though the added code work, but i think there are some risk in
it, e.g. if the app are using a session which created from kbase, this code
may cause exception.

Any idea?

Thanks

Oliver

--
View this message in context: 
http://drools.46999.n3.nabble.com/OutOfMemoryError-happens-when-dynamic-loading-of-Rules-from-Guvnor-frequently-tp3079965p3098144.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users