Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Usages

  • Tensorflow Helper Plugin is used to add additional input and post-processing options to the Tensorflow plugin provided by Joget platform.
  • Joget platform currently provided 2 Tensorflow plugin which is Simple TensorFlow AI Decision Tool & Simple TensorFlow AI Process Tool.
  • After a Tensorflow Helper Plugin is installed in Joget platform, the additional input and post-processing options provided by this plugin will available in selection.
  • A useable Tensorflow Helper Plugin must implement org.joget.ai.TensorFlowPlugin interface.

Interface Class

English

org.joget.ai.TensorFlowPlugin

  • Under wflow-core module
  • An interface class to develop a Tensorflow Helper Plugin. 

Method Detail

Interface Methods
getInputClasses
public TensorFlowInput[] getInputClasses();

Return the additional input option.

getPostProcessingClasses
public TensorFlowPostProcessing[] getPostProcessingClasses();

Return the additional post-processing option.

org.joget.ai.TensorFlowElement

  • Under wflow-core module
  • A base interface class to develop an input/post-processing option for the tensorflow plugin

Method Detail

Interface Methods
getName
public String getName();

Return the short name of the option

getLabel
public String getLabel();

Return the label of the option

getDescription
public String getDescription();

Return the description of the option

getUI
public String getUI();

Return the HTML UI to correct Input

getInitScript
public String getInitScript();

Return the javascript to initialize the UI

org.joget.ai.TensorFlowInput

Method Detail

Interface Methods
getInputs
public Tensor getInputs(Map params, String processId, Map<String, String> variables, Map<String, Object> tempDataHolder) throws IOException;

Return the Tensorflow Tensor object

Parameters

    • params - the parameters filled in the Tensorflow plugin UI
    • processId - the process instance id
    • variables - the workflow variable
    • tempDataHolder - A temporary data placeholder that can be used to cache a reusable data.

org.joget.ai.TensorFlowPostProcessing

Method Detail

Interface Methods
runPostProcessing
public void runPostProcessing(Map params, Map<String, Object> tfVariables, Map<String, String> variables, Map<String, Object> tempDataHolder) throws IOException;

Run post-processing to process the Tensorflow output.

Parameters

    • params - the parameters filled in the Tensorflow plugin UI
    • tfVariables - the output variables of Tensorflow
    • processId - the process instance id
    • variables - the workflow variable
    • tempDataHolder - A temporary data placeholder that can be used to cache a reusable data.