Re: [rules-users] AddKnowledgePackage with rules that uses global vars complains that the global var is not set
I was planning to reply to this topic after I tested it, explaining what you said to me at IRC. Anyway, thanks again. -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/AddKnowledgePackage-with-rules-that-uses-global-vars-complains-that-the-global-var-is-not-set-tp889311p889451.html Sent from the Drools - User 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] AddKnowledgePackage with rules that uses global vars complains that the global var is not set
I'm trying to add rules after the Process (workflow) started. That works, but I wanted the rules to access database data using hibernate. So I created a global object to store my EntityManager (I'm using SEAM; it's like a Session object). The problem is that when I add the KnowledgePackage with the rule that uses the EntityManager, an exception is thrown because the global is not set. BUT, if I try to set the global var, I get an exception saying it does not exist. Do you have any idea? I've seen that when I add the KnowledgePackage to the StatefullKnowledgeSession the rules are fired, and then I get the exception. Is there a way to NOT fire the rules after inserting the packages? -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/AddKnowledgePackage-with-rules-that-uses-global-vars-complains-that-the-global-var-is-not-set-tp889311p889311.html Sent from the Drools - User 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] MinaClient: can't get tasks of user unless specifying taskId
well... I don't know if that's the best way, but... seen this (http://drools-java-rules-engine.46999.n3.nabble.com/Drools-Flow-Another-problem-with-Human-Task-td724086.html#a724086) I found that there's a bug about the tasks needing the property comment to work. After setting the comment property on the tasks, it started working (getTasksAssignedAsPotentialOwner). So, thanks. -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/MinaClient-can-t-get-tasks-of-user-unless-specifying-taskId-tp842933p845040.html Sent from the Drools - User 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] skip workflow's task from NodeInstance
Thanks, salaboy. -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/skip-workflow-s-task-from-NodeInstance-tp787552p842934.html Sent from the Drools - User 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] MinaClient: can't get tasks of user unless specifying taskId
I'm using WSHTHandler (Mina Server) as WorkItemHandler on my app. And now I'm trying to make a simple client. The problem is I can't get the tasks from the server when passing the userId and language on the getTasksAssignedAs* methods from MinaTaskClient class. When I use getTask(1, getTaskHandler) passing the test Task Id (1), it works, and getTaskHandler.getTask().getPeopleAssignments().getPotentialOwners() returns that user '1' is assigned to the task, but if I call client.getTasksAssignedAsPotentialOwner("1", "en-UK", responseHandler), it returns nothing. I think it's something related to the language (en-UK) or setting the userId to the task. How do I set a user to a task? I'm doing it on a xml, available here: http://pastebin.com/u46nb0NE Thanks. -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/MinaClient-can-t-get-tasks-of-user-unless-specifying-taskId-tp842933p842933.html Sent from the Drools - User 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] skip workflow's task from NodeInstance
salaboy, I'm need to do a web page that shows the flow and allows a "superuser" to start/stop the flow, as well as skip and interact with the active nodes. This need to be available for each flow instantiated. So what I managed (with help) to list all flows instantiated as well as it's nodes waiting to be completed, but I need some way to show the other tasks and approve (complete) them just by having it NodeInstance (or maybe approach on a different way... any ideas). best regards, -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/skip-workflow-s-task-from-NodeInstance-tp787552p830058.html Sent from the Drools - User 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] skip workflow's task from NodeInstance
I'm trying to do a web page that lists the active workflows (processInstances) and it's respective tasks that are waiting to be processed to continue the flow. Also, I'd like to create a button to those tasks to skip them, and go to the next task. The first part I've already done with ((RuleFlowProcessInstance)ProcessInstance).getNodeInstances() (and so on), but now I want to know if it's possible to skip the node with just a NodeInstance objetct. Can you help me? thx. just in case, I'm using the words "node", "activity" and "task" to represent the same thing. -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/skip-workflow-s-task-from-NodeInstance-tp787552p787552.html Sent from the Drools - User mailing list archive at Nabble.com. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users