/** * Remove a context variable declaration. * @param variable The variable. */ public void removeContextVariable(MContextVariable variable) { removeContextVariable(variable.getName()); }
/** * Get the initialization expression of a declared context variable. * @param name The variable name. * @return The initialization expression (if any). */ public UnparsedExpression getContextVariableExpression(String name, String config) { MContextVariable variable = getContextVariable(name); return config != null? variable.getValue(config) : variable; }
/** * Remove a property. * @param prop The property. */ public void removeProperty(MProperty prop) { if(properties!=null) removeProperty(prop.getName()); }
/** * Get a string to identify this activity in a tool such as the debugger. * @return A unique but nicely readable name. */ public String getBreakpointId() { String name = getName(); if(name==null) name = getActivityType()+"("+getId()+")"; return name; }
/** * Legacy conversion from unparsed expression. * * @param name Name * @param exp */ public void setPropertyValue(String name, UnparsedExpression exp) { MProperty mprop = new MProperty(); mprop.setName(name); mprop.setInitialValue(exp); addProperty(mprop); }
/** * */ public ProcessThreadInfo createProcessThreadInfo(ProcessThread thread) { ProcessThreadInfo info = new ProcessThreadInfo(thread.getId(), thread.getActivity().getBreakpointId(), thread.getActivity().getPool()!=null ? thread.getActivity().getPool().getName() : null, thread.getActivity().getLane()!=null ? thread.getActivity().getLane().getName() : null, thread.getException()!=null ? thread.getException().toString() : "", thread.isWaiting(), thread.getData()!=null ? thread.getData().toString() : ""); return info; }
/** * Get the activity handler for an activity. * @param actvity The activity. * @return The activity handler. */ public IActivityHandler getActivityHandler(MActivity activity) { return (IActivityHandler)activityhandlers.get(activity.getActivityType()); }
/** * Helper method disconnecting this edge. */ public void disconnect() { if (this.source != null) { this.source.removeOutgoingDataEdge(this); } if (this.target != null) { this.target.removeIncomingDataEdge(this); } this.source = null; this.target = null; }
/** * Helper method disconnecting this edge. */ public void disconnect() { if (this.source != null) { this.source.removeOutgoingSequenceEdge(this); } if (this.target != null) { this.target.removeIncomingSequenceEdge(this); } this.source = null; this.target = null; }
public Object getValue() { return parameter.getName(); }
/** * Get the classloader. * @return the classloader. */ public ClassLoader getClassLoader() { return bpmnmodel.getClassLoader(); }
/** * Get the initialval. * @return The initialval. */ public String getInitialValueString() { UnparsedExpression exp = getInitialValue(); return exp != null? exp.getValue() : null; }
/** * Get a property value string from the model. * @param name The name. */ public String getPropertyValueString(String name) { UnparsedExpression exp = getPropertyValue(name); return exp != null? exp.getValue() : null; }
/** * Get all start activities of the pool. * @return A non-empty List of start activities or null, if none. */ public List<MActivity> getStartActivities() { return MBpmnModel.getStartActivities(activities); }
/** * Test, if a property is declared. * @param name The property name. * @return True, if the property is declared. */ public boolean hasPropertyValue(String name) { return activity.hasPropertyValue(name); }
/** * Sets the value. */ public void setValue(Object value) { if (getBpmnElement() != null) { ((MNamedIdElement) getBpmnElement()).setName((String) value); } }
public Object getValue() { return parameter.getName(); }
/** * Get all start activities of the pool. * @return A non-empty List of start activities or null, if none. */ public List<MActivity> getStartActivities() { return MBpmnModel.getStartActivities(activities); } }
/** * Remove a parameter. * @param param The parameter. */ public void removeParameter(MParameter param) { if(parameters!=null) parameters.removeValue(param.getName()); }
/** * Get all start activities of the pool. * @return A non-empty List of start activities or null, if none. */ public List<MActivity> getStartActivities() { return MBpmnModel.getStartActivities(activities); } }