/** * 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; }
String typename = (String)SJavaParser.parseExpression(vact.getMActivity().getPropertyValue(MActivity.RESULTTYPE), null, null).getValue(null); if(typename!=null && typename.length()>0) acc.setSelectedItem(new ClassInfo(typename));
/** * Get a property value from the model. * @param name The name. */ public Object getParsedPropertyValue(String name) { UnparsedExpression upex = getPropertyValue(name); Object val = ((IParsedExpression)upex.getParsed()).getValue(null); return val; }
/** * Hack: method is necessary because thread.activity is not always * the activity to execute in case of multiple event. * Get the value of a property. * @param name The property name. * @return The property value. */ public Object getPropertyValue(String name, MActivity activity) { assert activity!=null; UnparsedExpression upex = activity.getPropertyValue(name); try { return upex!=null ? ((IParsedExpression)upex.getParsed()).getValue(new ProcessThreadValueFetcher(this, true, instance.getFetcher())) : null; } catch(RuntimeException e) { throw new RuntimeException("Error parsing property: "+instance+", "+this+", "+name+", "+upex, e); } }
UnparsedExpression dur = (UnparsedExpression) ((MActivity) event.getBpmnElement()).getPropertyValue("duration"); if (dur != null)
UnparsedExpression trig = (UnparsedExpression) msighandler.getPropertyValue(MBpmnModel.SIGNAL_EVENT_TRIGGER); if (trig != null)
UnparsedExpression cond = (UnparsedExpression)((MActivity)event.getBpmnElement()).getPropertyValue("condition"); if(cond!=null) UnparsedExpression evt = (UnparsedExpression)((MActivity)event.getBpmnElement()).getPropertyValue("eventtypes"); String vals[] = null; if(evt!=null)
out.print("<semantic:timerEventDefinition"); if (activity.hasPropertyValue("duration") && ((UnparsedExpression) activity.getPropertyValue("duration")).getValue().length() > 0) out.print(escapeString(((UnparsedExpression) activity.getPropertyValue("duration")).getValue())); out.println("</semantic:timeDuration>"); out.print(getIndent(baseind + 1));