You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 14 Next »

New Feature

This is a new feature in Joget DX


Introduction

The Simple Tensorflow AI Decision plugin allows one to map it on a process route, execute a pre-trained Tensorflow AI model and use the output result for decision making.

Please take note that the Decision Tool Plugin will take precedence over existing conventional conditional setup in the Process Builder



Simple Tensorflow AI Decision Properties

Simple Tensorflow AI Decision

NameDescriptionScreens (click to view)
Tensorflow Session

The Tensorflow Session properties are defined here:

Sub-elementDescription
Add SessionAdd a Session. see Add Session properties below.
Add Post Processing

When hovering the mouse over the Add Post Processing, a list of Post Processing types will be available as shown below:

  • BeanShell Script - see Add Post Processing - Beanshell Script properties
  • Values to Labels - see Add Post Processing - Values to Labels properties
  • Euclidean Distance - see Add Post Processing - Euclidean Distance properties
  • Probabilities to Labels - see Add Post Processing - Probabilities to Labels properties

Rules

The Rules properties have the same properties as seen in Simple Rules Decision



Add Session


Figure 2 : Simple Tensorflow AI Decision Properties - Add Session properties are defined here:

Sub-elementDescription
Model
  • Choose File - Select an AI model to run
  • Clear - clear selected AI model
Delete Session
Add Input

When hovering the mouse over the Add Input, a list of Input types will be available as shown below:

  • BeanShell Script - see Add Input - Beanshell Script properties
  • Image - see Add Input - Image properties
  • Boolean - see Add Input - Boolean properties
  • Audio MelSpectogram - see Add Input - Audio Melspectogram properties
  • Numbers - see Add Input - Numbers properties
  • Text - see Add Input - Text properties
Add Outputsee Add Output properties

Add Input

BeanShell Script

Figure 3 : Simple Tensorflow AI Decision Properties - Add Input - BeanShell Script properties are defined here:

Sub-elementDescription
Input Name
Script

Script in Java. Please see  Bean Shell Programming Guide for code example.

Delete Input


Image

Figure 4 : Simple Tensorflow AI Decision Properties - Add Input - Image properties are defined here:

Sub-elementDescription
Input Name
Type
  • Float
  • Double
  • Integer
  • UInt8
  • Long
File Source
  • Retrieve from URL
  • <list of all available Forms>
URL or Image Upload Field ID
  • URL input if Retrieve from URL was selected as the File Source
  • Image Upload Field ID if a Form was selected as the File Source
WidthWidth in Integer

Height

Height in Integer

Mean

Mean in Integer
ScaleScale in Integer
Delete Input


Boolean

Figure 5 : Simple Tensorflow AI Decision Properties - Add Input - Image properties are defined here:

Sub-elementDescription
Input Name
Value
  • True
  • False
Delete Input


Audio MelSpectrogram

Figure 6 : Simple Tensorflow AI Decision Properties - Add Input - Audio MelSpectrogram properties are defined here:

Sub-elementDescription
Input Name
File Source
  • Retrieve from URL
  • <list of all available Forms>
URL or File Upload Field ID
  • URL input if Retrieve from URL was selected as the File Source
  • File Upload Field ID if a Form was selected as the File Source
WidthWidth in Integer
Height

Height in Integer

FFT SizeFFT Size in Integer
Overlap SizeOverlap Size in Integer
Min Frequency (Hz)Minimum Frequency (Hz) in
Max Frequency (Hz)Maximum Frequency (Hz) in
Delete Input


Numbers

Figure 7 : Simple Tensorflow AI Decision Properties - Add Input - Numbers properties are defined here:

Sub-elementDescription
Input Name
Type
  • Float
  • Double
  • Integer
  • UInt8
  • Long
Number Valuesseparate number values by ;
Delete Input


Text

Figure 8 : Simple Tensorflow AI Decision Properties - Add Input - Text properties are defined here:

Sub-elementDescription
Input Name
Type
Text Value
Dictionary (JSON/CSV)
Max Length
Leave Empty On Front
Delete Input

Add Output

Text

Figure 9 : Simple Tensorflow AI Decision Properties - Add Output - Text properties are defined here:

Sub-elementDescription
Output Name
Temporary Variable Name
Delete Output

Add Post Processing

BeanShell Script

Figure 10 : Simple Tensorflow AI Decision Properties - Add Post-Processing - BeanShell Script properties are defined here:

Sub-elementDescription
Post Processing Name
Script

Script in Java. Please see  Bean Shell Programming Guide for code example.

Injected variables available for consumption are:-

  • String Name
  • Map tfVariables
  • Map Variables
  • Map tempDataHolder
Delete Post-Processing


Values to Labels

Figure 11 : Simple Tensorflow AI Decision Properties - Add Post-Processing - Values to Labels properties are defined here:

Sub-elementDescription
Post Processing Name
Get Unique Only
Labels (CSV)
Temporary Variable Name
Number of Values
Delete Post-Processing


Euclidean Distance

Figure 12 : Simple Tensorflow AI Decision Properties - Add Post-Processing - Euclidean Distance properties are defined here:

Sub-elementDescription
Post-Processing Name
Temporary Variable Name
Temporary Variable Name
Delete Post-Processing


Probabilities to Labels

Figure 13 : Simple Tensorflow AI Decision Properties - Add Post-Processing - Probabilities to Labels properties are defined here:

Sub-elementDescription
Post Processing Name
Threshold
Get Highest Only
Labels (CSV)
Temporary Variable Name
Delete Post-Processing
  • No labels