/** * De-serialize the compiled process representation from a stream. * * @param is * input stream * @return process information from configuration database */ private OProcess deserializeCompiledProcess(InputStream is) throws Exception { OProcess compiledProcess; Serializer ofh = new Serializer(is); compiledProcess = ofh.readOProcess(); return compiledProcess; }
protected OConstants getConstants() { return _self.o.getOwner().constants; }
static String genCorrelatorId(OPartnerLink plink, String opName) { return plink.getName() + "." + opName; }
static private void failureHandlinExtensibilityElement(OActivity output, BpelObject src) { // Failure handling extensibility element. Element element = src.getExtensibilityElement(ExtensibilityQNames.FAILURE_HANDLING); if (element == null) return; FailureHandling extElement = new FailureHandling(element); OFailureHandling obj = new OFailureHandling(); obj.retryFor = extElement.getRetryFor(); obj.retryDelay = extElement.getRetryDelay(); obj.faultOnFailure = extElement.getFaultOnFailure(); output.setFailureHandling(obj); }
public OProcess.OPropertyAlias resolvePropertyAlias(OScope.Variable variable, QName propertyName) { if (!(variable.type instanceof OMessageVarType)) throw new CompilationException(__cmsgs.errMessageVariableRequired(variable.name)); OProcess.OProperty property = resolveProperty(propertyName); OProcess.OPropertyAlias alias = property.getAlias(variable.type); if (alias == null) throw new CompilationException(__cmsgs.errUndeclaredPropertyAlias(variable.type.toString(), propertyName)); return alias; }
public void compile(OActivity output, Activity src) { OSwitch oswitch = (OSwitch) output; SwitchActivity switchDef = (SwitchActivity)src; for (SwitchActivity.Case ccase : switchDef.getCases()) { OSwitch.OCase ocase = new OSwitch.OCase(_context.getOProcess()); ocase.activity = _context.compile(ccase.getActivity()); ocase.expression = (ccase.getCondition() == null ? _context.constantExpr(true) : _context.compileExpr(ccase.getCondition())); oswitch.addCase(ocase); } } }
public OActivity newInstance(Activity src) { return new OCompensate(_context.getOProcess(), _context.getCurrent()); } }
public Operation getMyRoleOperation(String operationName) { return _plinkDef.getMyRoleOperation(operationName); }
public int getActivityId() { return _location.getId(); }
public Object getOriginal(Object replacement) throws IllegalArgumentException { if (!(replacement instanceof OBaseReplacementImpl)) throw new IllegalArgumentException("Not OBaseReplacementObject!"); return _oprocess.getChild(((OBaseReplacementImpl)replacement)._id); }
public boolean equals(Object obj) { PartnerLinkInstance other = (PartnerLinkInstance) obj; return partnerLink.equals(other.partnerLink) && scopeInstanceId.equals(other.scopeInstanceId); }
public boolean equals(Object obj) { VariableInstance other = (VariableInstance) obj; return other.declaration.equals(declaration) && other.scopeInstance.equals(scopeInstance); }
private OElementVarType resolveElementType(QName faultVariableElementType) { OElementVarType type = _oprocess.elementTypes.get(faultVariableElementType); if (type == null) { type = new OElementVarType(_oprocess, faultVariableElementType); _oprocess.elementTypes.put(faultVariableElementType, type); } return type; }
public OActivity newInstance(Activity src) { return new OTerminate(_context.getOProcess(), _context.getCurrent()); } }
public OActivity newInstance(Activity src) { return new ORethrow(_context.getOProcess(), _context.getCurrent()); } }
public OActivity newInstance(Activity src) { return new OWhile(_context.getOProcess(), _context.getCurrent()); }
public OActivity newInstance(Activity src) { return new OAssign(_context.getOProcess(), _context.getCurrent()); }
public OActivity newInstance(Activity src) { return new OWait(_context.getOProcess(), _context.getCurrent()); }
public OActivity newInstance(Activity src) { return new OSequence(_context.getOProcess(), _context.getCurrent()); }
public OActivity newInstance(Activity src) { return new OCompensate(_context.getOProcess(), _context.getCurrent()); } }