Package org.jitterbit.integration.data

Examples of org.jitterbit.integration.data.IntegrationId


     * current FunctionId is set to <tt>null</tt> after this method is called.
     *
     * @return The "FunctionId" of the last visitor, if any.
     */
    public IntegrationId getFunctionId() {
        IntegrationId functionId_tmp = functionId;
        functionId = null;
        return functionId_tmp;
    }
View Full Code Here


            DeployPipelineActivityVisitor visitor = new DeployPipelineActivityVisitor();
            List<PipelineActivity> activities = pipeline.getActivities();
            List<IntegrationId> functions = Lists.newArrayList();
            for (PipelineActivity activity : activities) {
                visitor.visit(activity);
                IntegrationId functionId = visitor.getFunctionId();
                if (functionId != null) {
                    functions.add(functionId);
                }
            }

            if (functions.size() > 1) {
                // If there is more than one function then we must handle it using chain links.
                IntegrationId functionId = functions.get(0);
                String[] fields = null;
                for (int i = 1, N = functions.size(); i < N; ++i) {
                    IntegrationId nextFunctionId = functions.get(i);
                    fields = TransformationChainLink.getPropertyValues(operation, functionId, nextFunctionId);
                    m_updatedTranChainLinks.add(getInterchangeDataRow(fields));
                    functionId = nextFunctionId;
                }
            }
View Full Code Here

        int index = functionIds.indexOf(f.getFunctionID());
        if (index == -1) {
            return;
        }
        // HACK: This is fine for now, but what if (when) we add more function types?
        IntegrationId newId = (f instanceof Transformation) ? TransformationId.UNDEFINED_ID
                        : WebServiceCallId.UNDEFINED_ID;
        functionIds.set(index, newId);
        if (index == 0) {
            // The deleted function was the first function in the chain. This ID is also stored in
            // the key value pairs:
View Full Code Here

            functionIds.add(type.getIntegrationId(fcn.getString("value")));
        }
    }

    private static Transformation getFirstTransformation(Operation op, IntegrationEntityLookup lookup) {
        IntegrationId id = getFirstFunctionId(op);
        if (id instanceof TransformationId) {
            return lookup.getEntity((TransformationId) id, Transformation.class);
        }
        return null;
    }
View Full Code Here

        }
    }

    private Transformation getTransformation() {
        if (functionIds.size() == 1) {
            IntegrationId id = functionIds.get(0);
            if (id instanceof TransformationId) {
                return collector.context().getDataStore().getEntity((TransformationId) id, Transformation.class);
            }
        }
        return null;
View Full Code Here

        }
        return null;
    }

    private Transformation extractRequestTransformation(List<IntegrationId> chain, IntegrationEntityLookup lookup) {
        IntegrationId first = chain.get(0);
        if (first instanceof TransformationId) {
            return lookup.getEntity((TransformationId) first, Transformation.class);
        }
        return null;
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.data.IntegrationId

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.