fluid-ws-java-client/src/main/java/com/fluidbpm/ws/client/v1/flowitem/FlowItemClient.java
public FluidItem createFlowItem(
            FluidItem flowJobItemParam,
            String flowNameParam) {

        if (flowJobItemParam != null && this.serviceTicket != null) {
            flowJobItemParam.setServiceTicket(this.serviceTicket);
        }

        //Flow Job Item Step etc...
        if(flowJobItemParam != null)
        {
            flowJobItemParam.setFlow(flowNameParam);
        }

        try {

            return new FluidItem(this.putJson(
                    flowJobItemParam, WS.Path.FlowItem.Version1.flowItemCreate()));
        }
        //
        catch (JSONException e) {
            throw new FluidClientException(e.getMessage(), e,
                    FluidClientException.ErrorCode.JSON_PARSING);
        }
    }
public FluidItem createFlowItem(
            FluidItem flowJobItemParam,
            String flowNameParam) {

        if (flowJobItemParam != null && this.serviceTicket != null) {
            flowJobItemParam.setServiceTicket(this.serviceTicket);
        }

        //Flow Job Item Step etc...
        if(flowJobItemParam != null)
        {
            flowJobItemParam.setFlow(flowNameParam);
        }

        try {

            return new FluidItem(this.putJson(
                    flowJobItemParam, WS.Path.FlowItem.Version1.flowItemCreate()));
        }
        //
        catch (JSONException e) {
            throw new FluidClientException(e.getMessage(), e,
                    FluidClientException.ErrorCode.JSON_PARSING);
        }
    }
public FluidItem createFlowItem ( FluidItem flowJobItemParam , String flowNameParam ) { if ( flowJobItemParam != null && this . serviceTicket != null ) { flowJobItemParam . setServiceTicket ( this . serviceTicket ) ; } //Flow Job Item Step etc... if ( flowJobItemParam != null ) { flowJobItemParam . setFlow ( flowNameParam ) ; } try { return new FluidItem ( this . putJson ( flowJobItemParam , WS . Path . FlowItem . Version1 . flowItemCreate ( ) ) ) ; } // catch ( JSONException e ) { throw new FluidClientException ( e . getMessage ( ) , e , FluidClientException . ErrorCode . JSON_PARSING ) ; } }
Creates a new Fluid Item that will be sent to the {@code flowJobItemParam}
Flow.

@param flowJobItemParam The Fluid Item to create and send to Workflow.
@param flowNameParam The name of the Flow where the Item must be sent.
@return The created Fluid item.
Creates a new Fluid Item that will be sent to the { @code flowJobItemParam } Flow .