[JBoss jBPM] - Cancel tasks on transition
by MSchmidke
Hello all,
with "end-tasks='true'" in my task-node, I can have all tasks ended when the node is left.
Is there also a possibility to have all open tasks canceled when the node is left?
Or which is the best way to achieve the following logic:
In my task node, two tasks are created. One for the current user of the process who has the ability to continue to the next step, one for the master user who has the right to shorthand the process to the last step.
If either of them ends his task, the other task must be removed too. Currently, I am using "end-tasks" for this, but I am not very lucky that in the logs, I cannot easily distinct between the task which was manually ended and the one which was canceled automatically.
What would you do?
Marcus.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102209#4102209
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102209
18 years, 6 months
[JBoss Seam] - Re: Custom Converter
by pete.muir@jboss.org
Try
@org.jboss.seam.annotations.jsf.Converter
| @Intercept(InterceptionType.NEVER)
| @Name("memberSourceConverter")
| public class MemberSource implements Converter {
|
| @Override
| public Object getAsObject(FacesContext facesContext, UIComponent uiComponent, String value) throws ConverterException {
| return value;
| }
|
| @Override
| public String getAsString(FacesContext facesContext, UIComponent uiComponent, Object value) throws ConverterException {
| String convertedValue = "";
| if (Constant.Member.Source.ONLINE.equalsIgnoreCase((String)value)) {
| convertedValue = "Online";
| } else if (Constant.Member.Source.QTISC.equalsIgnoreCase((String)value)) {
| convertedValue = "QTISC";
| } else if (Constant.Member.Source.CURRICULUM_COUNCIL_RESULT.equalsIgnoreCase((String)value)) {
| convertedValue = "CC Year11";
| } else {
| FacesMessage facesMsg = new FacesMessage("Converstion error.", String.format("Invalid member status %s.", ((String) value)));
| facesMsg.setSeverity(FacesMessage.SEVERITY_ERROR);
| FacesMessages.instance().add(facesMsg);
| throw new ConverterException(facesMsg); <-- exception thrown here...
| }
| return convertedValue;
| }
<h:outputText value="#{clientHome.instance.source}" converter="memberSourceConverter"></h:outputText>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102199#4102199
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102199
18 years, 6 months