[rules-users] InvalidItemStateException while accessing Guvnor

2012-12-06 Thread worldofprasanna
Hi All ..

We are getting the following error message in Guvnor when trying to access
it. 

org.drools.repository.RulesRepositoryException:
javax.jcr.InvalidItemStateException: property
/drools:repository/drools:package_area/com.lsi.sort/assets/Lotting
Guidelines/drools:content: the property cannot be saved because it has been
modified externally.


This occurs in our production system and it is occurring rarely (So We
couldn t reproduce it locally in our environment). 

But this issue is resolved when we restarted the Server in which the Guvnor
app is running. But this is nearly impossible as this occurs in production
system.

We are using Oracle DB as our Persistent Manager (as seen in the attachment)
and running the guvnor in clustered environment.

I presume that the issue might be related to versioning in Guvnor ? If so
can anyone guide us to solve this versioning problem ? 

Herewith attached the repository.xml file.

Thanks in advance,
Prasanna Venkataraman.

repository.xml
  



--
View this message in context: 
http://drools.46999.n3.nabble.com/InvalidItemStateException-while-accessing-Guvnor-tp4021115.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] Clustered Guvnor performance issue

2012-10-22 Thread worldofprasanna
Hi Mike,

Thanks for your confirmation. As an alternate for it, we thought of having
the rules in Excel sheet and upload it to the guvnor using Rest Api /
WebDAV. 

Is there an easy way to achieve this ? or I have to manually parse the excel
sheet and construct the xml string and update the Decision table ? coz I
found in a blog, 

http://blog.athico.com/2008/05/accessing-guvnor-as-filesystem-webdav.html

that we can use WebDAV for saving Excel directly to the repository. But I
didn t find any info regarding how to do this. 

Can you give some guidance for saving Excel to repository directly.

Thanks,
Prasanna Venkataraman.



--
View this message in context: 
http://drools.46999.n3.nabble.com/Clustered-Guvnor-performance-issue-tp4020370p4020420.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] Clustered Guvnor performance issue

2012-10-22 Thread worldofprasanna
Hi Manstis,

We have around 200 rules with 9 condition columns and 6 action columns in
Decision table and i think because of these many rules and columns we are
facing the slowness in Guvnor UI. Coz we tried creating a new decision table
and it was much quicker to navigate between the fields. 

Also I didn t find any rest call being done to backend while navigating
between the fields.

My doubt is whether having these much rules slows the UI Widget ? 

Thanks,
Prasanna Venkataraman.



--
View this message in context: 
http://drools.46999.n3.nabble.com/Clustered-Guvnor-performance-issue-tp4020370p4020403.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] Clustered Guvnor performance issue

2012-10-18 Thread worldofprasanna
Hi,

We have set the clustered environment with 2 nodes for guvnor and we used
Oracle Database as journal. We are experiencing performance issues, like
even to navigate between the cells in decision table it takes avg of 5-7
secs.

We followed the guidelines given in jackrabbit site to set up the clustered
repository and the link is,

http://wiki.apache.org/jackrabbit/Clustering

We doubt whether this clustering is the cause for this performance issue coz
we didn t find any issues in the forum related to the performance of Guvnor
? Can anyone give recommended procedure for clustering guvnor. We found that
there is a task to create cluster repository, but didn t find much
information about drools-ant task. Can we get some example for configuring
drools-ant ?

Also can we know whether there will be any difference in performance if File
Journal is used instead of Database Journal? There ll not be concurrent
access to both the guvnor application.

Thanks,
Prasanna Venkataraman.




--
View this message in context: 
http://drools.46999.n3.nabble.com/Clustered-Guvnor-performance-issue-tp4020370.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] Prevent saving the resource when using guvnorEditorObjRef, in case if validation fails.

2012-05-28 Thread worldofprasanna
Thanks Esteban for the info. And yes, I will log a feature request ... 

--
View this message in context: 
http://drools.46999.n3.nabble.com/Prevent-saving-the-resource-when-using-guvnorEditorObjRef-in-case-if-validation-fails-tp4017580p4017605.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] Prevent saving the resource when using guvnorEditorObjRef, in case if validation fails.

2012-05-27 Thread worldofprasanna
Hi All,

We have embedded the Guvnor decision table asset into our html page and
obtained the guvnorEditorObjRef to validate the new rule which is added. We
wrote our business logic within the function, 

guvnorEditorObjRef.registerBeforeSaveAllButtonCallbackFunction()


And it works fine. But the problem is when we find the business validation
got failed, we couldn t stop the resource from saving. Check In dialog box
opens and we couldn t find a way to prevent it from saving.

Is there anyway to prevent the asset from Saving in case, if the validation
failed ?

Thanks,
Prasanna Venkataraman.

--
View this message in context: 
http://drools.46999.n3.nabble.com/Prevent-saving-the-resource-when-using-guvnorEditorObjRef-in-case-if-validation-fails-tp4017580.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] No synchronization in Guvnor, between Rest API calls and changeset.xml file

2012-05-27 Thread worldofprasanna
Hi All,

I had created a new rule in Decision Table, built the package and created
the snapshot using rest api calls from my application. 
Then I tried to create KnowledgeBase using changeset.xml using the code
below,

UrlResource urlResourceObj = new UrlResource(new
URL(guvnorUrl+"/org.drools.guvnor.Guvnor/package/com.lsi.sort/LATEST/ChangeSet.xml"));
  
agent.applyChangeSet(urlResourceObj);

but the package url in the changeset.xml which is,

http://localhost:8080/guvnor/org.drools.guvnor.Guvnor/package/com.lsi.sort/LATEST


doesn t contain the new rule which is added through Rest API call. But when
I retrieve the source code of the package using Rest API call,

http://localhost:8080/guvnor/rest/packages/com.lsi.sort/source


am able to get the New rule. 

Can anyone explain whether this is the intended behaviour or there is no
sync between Rest Api call and the url in changeset.xml.

Am using Guvnor 5.4.0.Final

Thanks,
Prasanna Venkataraman.

--
View this message in context: 
http://drools.46999.n3.nabble.com/No-synchronization-in-Guvnor-between-Rest-API-calls-and-changeset-xml-file-tp4017579.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] Advanced Enum options not working in Guvnor 5.4 Decision table

2012-05-03 Thread worldofprasanna
Heartfelt wishes and prayers for it to go well ... 

--
View this message in context: 
http://drools.46999.n3.nabble.com/Advanced-Enum-options-not-working-in-Guvnor-5-4-Decision-table-tp3954691p3959055.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] Advanced Enum options not working in Guvnor 5.4 Decision table

2012-05-02 Thread worldofprasanna
Hi Manstis,

Thanks for the info. And when 5.4.0.Final will be released ?

--
View this message in context: 
http://drools.46999.n3.nabble.com/Advanced-Enum-options-not-working-in-Guvnor-5-4-Decision-table-tp3954691p3958100.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] Advanced Enum options not working in Guvnor 5.4 Decision table

2012-05-02 Thread worldofprasanna
Hi,

Am trying to use the Enums which are dependent on other enums (similar to
that of engineType and petrolType example given in the doc). But this
feature works well for Business rule not in case of Decision table. In
decision table, I got the engineType updated with the enum values while
petrolType is still displaying Textbox to enter the values.

code :


'Item.category':['Consumer','Electronics']
'Item.subcategory[category=Consumer]':['Television','Radio']
'Item.subcategory[category=Electronics]':['Apple','Sony']

Kindly let me know how can I use Advanced Enum option in Decision table.

Thanks,
Prasanna.

--
View this message in context: 
http://drools.46999.n3.nabble.com/Advanced-Enum-options-not-working-in-Guvnor-5-4-Decision-table-tp3954691.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] Redundancy check option not working in Drools Verifier 5.4

2012-04-26 Thread worldofprasanna
Hi Mark,

Thanks for the reply. And below is the issue which i have created.

https://issues.jboss.org/browse/JBRULES-3484

Regards,
Prasanna.

--
View this message in context: 
http://drools.46999.n3.nabble.com/Redundancy-check-option-not-working-in-Drools-Verifier-5-4-tp3938055p3943464.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] Redundancy check option not working in Drools Verifier 5.4

2012-04-26 Thread worldofprasanna
Hi,

Still am stuck up with this problem. I couldn t verify the redundancy in my
rules using Drools Verifier. Can somebody out there help me ?

Thanks,
Prasanna.

--
View this message in context: 
http://drools.46999.n3.nabble.com/Redundancy-check-option-not-working-in-Drools-Verifier-5-4-tp3938055p3941009.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] Redundancy check option not working in Drools Verifier 5.4

2012-04-25 Thread worldofprasanna
Hi All,

I tried to use Drools Verifier to validate the available rules. I got all
the warning types like MISSING_EQUALITY, ALWAYS_FALSE. But I couldn t get
the redundancy warning, eventhough i have given the duplicate rules
explicitly. 

I am using Drools Verifier 5.4.0.Final.

Herewith given the following details,

1. Sample rule file


rule "rule 1"
when
$server : Server(processors==2, memory==1024)
then
System.out.println("rule 1")
end
rule "rule 2"
when
$server : Server(processors==2, processors!=2)
then
System.out.println("rule")
end
rule "rule 3"
when
$server : Server(processors==2, memory==1024)
then
System.out.println("rule 3")
end

2. Code which verifies the validity of the rule.


VerifierBuilder vBuilder = VerifierBuilderFactory.newVerifierBuilder(); 
 
Verifier verifier = vBuilder.newVerifier();

verifier.addResourcesToVerify(new
ClassPathResource("sample.drl",
DroolsVerifierCheck.class),
ResourceType.DRL);
  
verifier.fireAnalysis();
VerifierReport result = verifier.getResult();

// To display the warnings in verifier.
Collection warningMessages =
  result.getBySeverity(Severity.WARNING);
  for (VerifierMessageBase msg : warningMessages) {
  System.out.println("Note: " + msg.getMessage() +
  " type: " + msg.getMessageType() +
  " on: " + msg.getFaulty());
  }

Problem


In the sample rule, you can find rule 1 and rule 3 are same. But I didn t
get the warning for redundancy.

Research done


When i debug the code, i found like the rule "Find redundant pattern
possibilities from rule possibilities" and "Find redundant restrictions from
pattern possibilities" are loaded into the Knowledge base created and tagged
with Agenda group as Main, but those are not present in the Knowledge
session created (I mean after inserting the objects into the Knowledge
session in the code : VerifierImpl.java). 

Also can anybody explain when a rule will be present in the knowledge base
but not selected by the agenda. I haven t modified anything in the
AgendaFilter and its given the default value ScopeAgendaFilter. 

Kindly let me know why the redundancy warning is not given in my case ?

P.S : I have gone through the post below,

http://http://drools.46999.n3.nabble.com/Drools-verifier-td2681002.html
http://drools.46999.n3.nabble.com/Drools-verifier-td2681002.html 

and at the bottom they have asked the same question, but there is no answer
available for it.

Thanks,
Prasanna.

--
View this message in context: 
http://drools.46999.n3.nabble.com/Redundancy-check-option-not-working-in-Drools-Verifier-5-4-tp3938055p3938055.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