AssignGenerator agen = new AssignGenerator(); agen.setContext(this); ovar.from=agen.compileFrom(varfromSpec, varType); else ovar.from=null;
public void compile(OActivity dest, Activity source) { OAssign oassign = (OAssign) dest; AssignActivity ad = (AssignActivity) source; for (Copy scopy : ad.getCopies()) { OAssign.Copy ocopy = new OAssign.Copy(_context.getOProcess()); ocopy.keepSrcElementName = scopy.isKeepSrcElement(); ocopy.ignoreMissingFromData = scopy.isIgnoreMissingFromData(); ocopy.ignoreUninitializedFromVariable = scopy.isIgnoreUninitializedFromVariable(); ocopy.insertMissingToData = scopy.isInsertMissingToData(); ocopy.insertMissingToData = scopy.isInsertMissingToData(); ocopy.debugInfo = new DebugInfo(_context.getSourceLocation(), scopy.getLineNo(), source.getExtensibilityElements()); try { if (scopy.getTo() == null) throw new CompilationException(__cmsgs.errMissingToSpec().setSource(scopy)); Object[] toResultType = new Object[1]; ocopy.to = compileTo(scopy.getTo(), toResultType); if (scopy.getFrom() == null) throw new CompilationException(__cmsgs.errMissingFromSpec().setSource(scopy)); ocopy.from = compileFrom(scopy.getFrom(), toResultType[0]); verifyCopy(ocopy); oassign.copy.add(ocopy); } catch (CompilationException ce) { _context.recoveredFromError(scopy, ce); } } }
try { if (from.isExtensionVal()) { return compileExtensionVal(from.getAsExtensionVal()); } else if (from.isLiteralVal()) { return compileLiteral(from.getAsLiteralVal()); } else if (from.isPropertyVal()) { OAssign.PropertyRef pref = new OAssign.PropertyRef(_context.getOProcess());
registerActivityCompiler(FlowActivity.class, new FlowGenerator()); registerActivityCompiler(SequenceActivity.class, new SequenceGenerator()); registerActivityCompiler(AssignActivity.class, new AssignGenerator()); registerActivityCompiler(ThrowActivity.class, new ThrowGenerator()); registerActivityCompiler(WhileActivity.class, new WhileGenerator());
registerActivityCompiler(FlowActivity.class, new FlowGenerator()); registerActivityCompiler(SequenceActivity.class, new SequenceGenerator()); registerActivityCompiler(AssignActivity.class, new AssignGenerator()); registerActivityCompiler(ThrowActivity.class, new ThrowGenerator()); registerActivityCompiler(WhileActivity.class, new WhileGenerator());
public BpelCompiler11() throws Exception { super((WSDLFactory4BPEL) WSDLFactoryBPEL11.newInstance()); registerActivityCompiler(EmptyActivity.class, new EmptyGenerator()); registerActivityCompiler(CompensateScopeActivity.class, new CompensateGenerator()); registerActivityCompiler(FlowActivity.class, new FlowGenerator()); registerActivityCompiler(SequenceActivity.class, new SequenceGenerator()); registerActivityCompiler(AssignActivity.class, new AssignGenerator()); registerActivityCompiler(ThrowActivity.class, new ThrowGenerator()); registerActivityCompiler(WhileActivity.class, new WhileGenerator()); registerActivityCompiler(SwitchActivity.class, new SwitchGenerator()); registerActivityCompiler(PickActivity.class, new PickGenerator()); registerActivityCompiler(ReplyActivity.class, new ReplyGenerator()); registerActivityCompiler(ReceiveActivity.class, new ReceiveGenerator()); registerActivityCompiler(InvokeActivity.class, new InvokeGenerator()); registerActivityCompiler(WaitActivity.class, new WaitGenerator()); registerActivityCompiler(TerminateActivity.class, new TerminateGenerator()); registerExpressionLanguage(EXPLANG_XPATH, "org.apache.ode.bpel.elang.xpath10.compiler.XPath10ExpressionCompilerBPEL11"); }