protected void setObject(Object value) { if (token != null) token.addLog(new DoubleUpdateLog(this, this.value, (Double) value)); this.value = (Double) value; } }
protected void setObject(Object value) { if (token!=null) token.addLog(new HibernateLongUpdateLog(this, this.value, value)); this.value = value; } }
protected void setObject(Object value) { if (token!=null) token.addLog(new HibernateLongUpdateLog(this, this.value, value)); this.value = value; } }
protected void setObject(Object value) { if (token!=null) token.addLog(new HibernateStringUpdateLog(this, this.value, value)); this.value = value; } }
protected void setObject(Object value) { if (token != null) token.addLog(new StringUpdateLog(this, this.value, (String) value)); this.value = (String) value; } }
protected void setObject(Object value) { if (token != null) token.addLog(new StringUpdateLog(this, this.value, (String) value)); this.value = (String) value; } }
protected void setObject(Object value) { if (token!=null) token.addLog(new HibernateStringUpdateLog(this, this.value, value)); this.value = value; } }
protected void setObject(Object value) { if (token != null) token.addLog(new LongUpdateLog(this, this.value, (Long) value)); this.value = (Long) value; }
protected void setObject(Object value) { if (token != null) token.addLog(new DateUpdateLog(this, this.value, (Date) value)); this.value = (Date) value; } }
protected void setObject(Object value) { if (token != null) token.addLog(new DateUpdateLog(this, this.value, (Date) value)); this.value = (Date) value; } }
protected void setObject(Object value) { if (token != null) token.addLog(new DoubleUpdateLog(this, this.value, (Double) value)); this.value = (Double) value; } }
protected void setObject(Object value) { if (token != null) token.addLog(new LongUpdateLog(this, this.value, (Long) value)); this.value = (Long) value; }
protected void setObject(Object value) { if (token != null) { token.addLog(new ByteArrayUpdateLog(this, this.value, (ByteArray) value)); } // delete old value, otherwise it will be unreachable if (this.value != null) { JbpmContext jbpmContext = JbpmContext.getCurrentJbpmContext(); if (jbpmContext != null) { Session session = jbpmContext.getSession(); if (session != null) session.delete(this.value); } } // set new value this.value = (ByteArray) value; } }
protected void addNodeLog(Token token) { token.addLog(new NodeLog(this, token.getNodeEnter(), Clock.getCurrentTime())); }
protected void addNodeLog(Token token) { token.addLog(new NodeLog(this, token.getNodeEnter(), Clock.getCurrentTime())); }
public static VariableInstance create(Token token, String name, Object value) { VariableInstance variableInstance = value != null ? createVariableInstance(value) : new NullInstance(); variableInstance.name = name; if (token != null) { variableInstance.token = token; variableInstance.processInstance = token.getProcessInstance(); token.addLog(new VariableCreateLog(variableInstance)); } variableInstance.setValue(value); return variableInstance; }
public void deleteVariableInstance(String name) { if (variableInstances != null) { VariableInstance variableInstance = (VariableInstance) variableInstances.remove(name); if (variableInstance != null) { // unlink variable variableInstance.removeReferences(); // log variable deletion getToken().addLog(new VariableDeleteLog(variableInstance)); // if a context is present and its logging service is not connected to the database JbpmContext jbpmContext = JbpmContext.getCurrentJbpmContext(); if (jbpmContext != null && !(jbpmContext.getServices().getLoggingService() instanceof DbLoggingService)) { // delete variable instance here before all references to it are lost Session session = jbpmContext.getSession(); if (session != null) session.delete(variableInstance); } } } }
public static VariableInstance create(Token token, String name, Object value) { VariableInstance variableInstance = value != null ? createVariableInstance(value) : new NullInstance(); variableInstance.name = name; if (token != null) { variableInstance.token = token; variableInstance.processInstance = token.getProcessInstance(); token.addLog(new VariableCreateLog(variableInstance)); } variableInstance.setValue(value); return variableInstance; }
/** * creates a child token. */ public Token(Token parent, String name) { this.start = Clock.getCurrentTime(); this.processInstance = parent.getProcessInstance(); this.name = name; this.node = parent.getNode(); this.parent = parent; parent.addChild(this); this.isTerminationImplicit = parent.isTerminationImplicit(); parent.addLog(new TokenCreateLog(this)); // assign an id to this token before events get fired Services.assignId(this); }
/** * creates a child token. */ public Token(Token parent, String name) { this.start = Clock.getCurrentTime(); this.processInstance = parent.getProcessInstance(); this.name = name; this.node = parent.getNode(); this.parent = parent; parent.addChild(this); this.isTerminationImplicit = parent.isTerminationImplicit(); parent.addLog(new TokenCreateLog(this)); // assign an id to this token before events get fired Services.assignId(this); }