shiftAssignment change
by john poole
I'm trying to write a simple web application that uses much of the code from
the NurseRostering example. It all works great except when I try to do a
"change move" after terminating solving.
In: DroolScoreDirector.afterVariableChanged() for the ShiftAssignment, I get
a null back from this:
FactHandle factHandle = workingMemory.getFactHandle(entity);
My guess is that it's because it's a different copy of the workingMemory
than the entity is coming from, but I'm not sure how to access the correct
copy.
I'm getting the ShiftAssigment from:
NurseRoster nurseRoster = (NurseRoster) solutionBusiness.getSolution();
List<ShiftAssignment>shiftAssignmentList=nurseRoster.getShiftAssignmentList();
and then attempting the move from:
solutionBusiness.doMove(new EmployeeChangeMove(shiftAssignment,
toEmployee));
Is there something else I need to do after terminating solving before doing
a changemove?
--
View this message in context: http://drools.46999.n3.nabble.com/shiftAssignment-change-tp4023179.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
11 years, 8 months
service() for servlet PluginServiceServlet threw exception: java.lang.IllegalArgumentException: No plugin by the name of plugins
by saihegde
I need to change the designer context root to support multiple instances of
guvnor and thereby designer on the same server.
I did by changing the following files
guvnor.war/WEB-INF/jboss-web.xml - Change context root
guvnor.war/WEB-INF/beans.xml - Configure jcr repository location
guvnor.war/classes/preferences.properties - Configure designer context root
designer.war/WEB-INF/jboss-web.xml - Change context root
designer.war/profiles/jbpm.xml - Configure guvnor context root
The default one does come up fine, but the other fails to load the designer
with the following exception.
12:27:36,369 ERROR
[org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/designer01].[PluginServiceServlet]]
(http--127.0.0.1-8
ervlet.service() for servlet PluginServiceServlet threw exception:
java.lang.IllegalArgumentException: No plugin by the name of plugins
at
org.jbpm.designer.web.plugin.impl.PluginServiceServlet.retrievePluginContents(PluginServiceServlet.java:93)
[classes:]
at
org.jbpm.designer.web.plugin.impl.PluginServiceServlet.doGet(PluginServiceServlet.java:71)
[classes:]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
[jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
[jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
[jbossweb-7.0.13.Final.jar:]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
[jbossweb-7.0.13.Final.jar:]
at
org.jbpm.designer.web.filter.impl.PluggableFilter.doFilter(PluggableFilter.java:70)
[classes:]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
[jbossweb-7.0.13.Final.jar:]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
[jbossweb-7.0.13.Final.jar:]
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
[jbossweb-7.0.13.Final.jar:]
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
[jbossweb-7.0.13.Final.jar:]
at
org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)
[jboss-as-web-7.1.1.Fina
1.1.Final]
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)
[jbossweb-7.0.13.Final.jar:]
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
[jbossweb-7.0.13.Final.jar:]
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
[jbossweb-7.0.13.Final.jar:]
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)
[jbossweb-7.0.13.Final.jar:]
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
[jbossweb-7.0.13.Final.jar:]
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)
[jbossweb-7.0.13.Final.jar:]
at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)
[jbossweb-7.0.13.Final.jar:]
at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_30]
--
View this message in context: http://drools.46999.n3.nabble.com/service-for-servlet-PluginServiceServle...
Sent from the Drools: User forum mailing list archive at Nabble.com.
11 years, 8 months
planner: Solver-Phase after a ProblemFactChange?
by roman.stumm
When the solver is in the localSearch phase and a problem-fact-change occurs:
will the solver jump back
into the construction-heuristics phase or continue with the local search?
Reason for my question: We have a (chained) vehicle-routing-problem with a
custom SwapMove- and ChangeMove-SelectionFilter that return 'false' for
some moves (on immovable planning entities, e.g. when a stop should be
pinned to a specific tour etc.), but the solver modifies them nevertheless
after a problem-fact-change?
--
View this message in context: http://drools.46999.n3.nabble.com/planner-Solver-Phase-after-a-ProblemFac...
Sent from the Drools: User forum mailing list archive at Nabble.com.
11 years, 8 months
User permission (Maker-Checker) issue in Guvnor 5.4.0
by kulpreet_singh
Hi,
I am using Guvnor version 5.4.0 and trying to implement maker-checker
functionality for updating rules/assets in Guvnor. I am facing problem
related to user permission. Following are the steps:
1) Configured two users in Guvnor using 'admin' login - Analyst & Developer
2) I have one package 'Test' where all the rules resides.
3) Created two categories - Draft & Approved
4) Assigned 'Developer' user: 'analyst' role on 'Draft' category and
'package.readonly' role on 'Test' package.
5) Assigned 'Analyst' user: 'analyst' role on 'Approved' category,
'package.developer' role on 'Test' package and 'analyst.readonly' on 'Draft'
category.
6) The idea is to initially assign all the rules/assets under 'Draft'
category. Once 'Developer' finishes working on rules, the 'Analyst' verifies
and replace the rule/asset category to 'Approved'.
7) I checked, the system is not allowing 'Developer' to edit the content of
the rule which is marked as 'Approved' category. But, the problem is,
'Developer' is allowed to replace the 'Approved' category of the asset back
to 'Draft' and hence free to edit that rule.
I presume this as the bug in the system as Developer should not be allowed
to modify the category of the rule if it doesn't belong to 'Draft' category.
Please help me in suggesting the workaround for this issue and appreciate
your valuable inputs in this regard.
Thanks & Regards,
Kulpreet Singh
--
View this message in context: http://drools.46999.n3.nabble.com/User-permission-Maker-Checker-issue-in-...
Sent from the Drools: User forum mailing list archive at Nabble.com.
11 years, 8 months
Not Able to create a cindition BRL fragment
by Aditi Hardas
Hi ,
I am using Drool Guvnor 5.5 along with IE 9 and Tomcat 7.0.32. I have
successfully deployed Guvnor in Tomcat.In next step I have created a package
then add a new category and added a rule with Decision Table (web - guided
rule ) as a rule formate.I was able to create a rule with certain set of
conditions and actions.On clicking Include Advance Option and choose *Add a
condition BRL fragment* or *Add an action BRL fragment*, I am getting java
script error and nothing is moving forword after that. That mean I am not
able to add and BRL fragment to my rule.
Can any one help me for this. Does I am doing any thing wrong.
Thx in advance.
--
View this message in context: http://drools.46999.n3.nabble.com/Not-Able-to-create-a-cindition-BRL-frag...
Sent from the Drools: User forum mailing list archive at Nabble.com.
11 years, 8 months