[jBPM Users] - Re: Translation of task node from jBPM3 to 4
by newcomer1
"kukeltje" wrote : no there is not. And not sure if it will return as it was or whether alternative ways (more bpmn like) will be implemented.
|
| What is the behaviour you need?
Im quite new to BPM and jBPM but I want to re implement an existing jBPM 3.x process in jBPM 4, but the existing process definition uses more or less only task-nodes. All the 3.x projects I've seen seems to use task-node definitions extensively and there is no examples/documentation in jbpm 4 that covers how to achieve the same type of behavior. Seems like what im after is grouping and/or fork/join.
The behavior that I want is more or less like this:
When entering a certain state (task-node) I want to create 5 tasks that have to be done to transition to the next state. The order these tasks are performed in do not matter and should not be enforced.
| <task-node name="received" blocking="true" create-tasks="true">
| <task name="reminder" blocking="true" duedate="1 business days">
| <assignment class="xx.AssignmentHandler"/>
| </task>
| <task name="evaluate" blocking="true" duedate="2 business days">
| xxx
| </task>
| <task name="createPlan" blocking="true" duedate="1 business days">
| xxxx
| </task>
|
| <more tasks, timers etc./>
|
| <transition name="toAccepted" to="accepted"/>
| <transition name="toRejected" to="rejected"/>
| </task-node>
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4257812#4257812
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4257812
13 years, 6 months
[Beginner's Corner] - Problems with LogFactory.getLog(String)
by SkyMe
Hello!
I faced with a problem using LogFactory.getLog for logging.
I configure my log4j with DOMConfigurator.configureAndWatch(XMLFile) and then I create an instance of commons.logging.Log
Log log = LogFactory.getLog(className);
After that I try to log:
log.info("I'm a log!");
XMLFile configure log4j to write logs to file (see below).
but the last command writes logs to the specified file and to CONSOLE. Why?
and two more things:
- I've included log4j.jar to the lib of my .ear project - with this I wanted all my project to use one log4j configuration.
- This all is under JBoss AS. And I don't want to use xml file of jboss to configure log4j.
This is my xml config file:
| <?xml version="1.0" encoding="UTF-8"?>
| <!DOCTYPE log4j:configuration >
|
| <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false">
|
| <appender name="fileappender" class="org.apache.log4j.DailyRollingFileAppender">
| <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
| <param name="File" value="${jboss.server.home.dir}/log/project.log"/>
| <param name="Append" value="true"/>
|
| <param name="DatePattern" value="'.'yyyy-MM-dd"/>
|
| <layout class="org.apache.log4j.PatternLayout">
| <param name="ConversionPattern" value="%d [%t] %-5p %c - %m%n"/>
|
| </layout>
| </appender>
|
| <category name="some.package">
| <priority value="DEBUG" />
| <appender-ref ref="fileappender" />
| </category>
|
| </log4j:configuration>
|
Thank you!
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4257800#4257800
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4257800
13 years, 6 months