parvathy j a [http://community.jboss.org/people/parvathy] created the discussion
"saving a new attribute value in database" To view the discussion, visit: http://community.jboss.org/message/562566#562566 -------------------------------------------------------------- Hi i created a new element escalation which acts as transition itself.. i parsed it similar to trasition in JpdlParser.java...i also have a new attribute 'level' in it public void parseEscalation(Element element, ActivityImpl activity, Parse parse) { UnresolvedTransitions unresolvedTransitions = parse.contextStackFind(UnresolvedTransitions.class); // HistoryActivityInstanceImpl hist = new HistoryActivityInstanceImpl(); List transitionElements = XmlUtil.elements(element, "escalation"); for (Element transitionElement : transitionElements) { String transitionName = XmlUtil.attribute(transitionElement, "name"); String level = XmlUtil.attribute(transitionElement, "level"); Element timerElement = XmlUtil.element(transitionElement, "timer"); if (timerElement != null) { TimerDefinitionImpl timerDefinitionImpl = parseTimerDefinition(timerElement, parse, activity); timerDefinitionImpl.setSignalName(transitionName); } TransitionImpl transition = activity.createOutgoingTransition(); transition.setName(transitionName); System.out.println("level#######>>>>>"+level); transition.setLevel(level== null || level ==""?0:Integer.parseInt(level)); // hist.setEscalationLevel(transition.getLevel()); // HistoryEvent.fire(new ActivityEnd(transitionName,transition.getLevel()),execution); unresolvedTransitions.add(transition, transitionElement); parseOnEvent(transitionElement, parse, transition, Event.TAKE); } could anyone please guide me how to save the attribute 'levels' value in JBPM4_HIST_ACTINST which will come for all escalation and the escaation name will come in the TRANSITION_ field.. i have added a new field ESCALATION_LEVEL_ in the table .. -------------------------------------------------------------- Reply to this message by going to Community [http://community.jboss.org/message/562566#562566] Start a new discussion in jBPM at Community [http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
_______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
