/** * Returns the <code>OutputActivityPort</code> from which data is received * for the bound <code>OutputProcessorPort</code>. * * @return the <code>OutputActivityPort</code> from which data is received * for the bound <code>OutputProcessorPort</code> */ @Override public OutputActivityPort getBoundActivityPort() { return super.getBoundActivityPort(); }
/** * Returns the <code>InputActivityPort</code> to which data is actually sent * when passed to the bound <code>InputProcessorPort</code>. * * @return the <code>InputActivityPort</code> to which data is actually sent * when passed to the bound <code>InputProcessorPort</code> */ @Override public InputActivityPort getBoundActivityPort() { return super.getBoundActivityPort(); }
protected ProcessorPortBinding<?, ?> processorPortBindingInternalInBinding( Port port, ProcessorBinding procBinding) { Set<? extends ProcessorPortBinding<?, ?>> portBindings; if (port instanceof InputPort) portBindings = procBinding.getInputPortBindings(); else portBindings = procBinding.getOutputPortBindings(); for (ProcessorPortBinding<?, ?> portBinding : portBindings) { if (port instanceof ProcessorPort && portBinding.getBoundProcessorPort().equals(port)) return portBinding; if (port instanceof ActivityPort && portBinding.getBoundActivityPort().equals(port)) return portBinding; } return null; }
@Override protected void cloneInto(WorkflowBean clone, Cloning cloning) { @SuppressWarnings("unchecked") ProcessorPortBinding<A, P> cloneBinding = (ProcessorPortBinding<A, P>) clone; cloneBinding.setBoundActivityPort(cloning .cloneOrOriginal(getBoundActivityPort())); cloneBinding.setBoundProcessorPort(cloning .cloneOrOriginal(getBoundProcessorPort())); }