Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
 The
Panel
borderColorgreenpurple
bgColorwhite
borderWidth1
titleBGColor#ddffcc#ddccff
borderStylesolid
titleDefinition
New Feature

This is a new feature in Joget DX


Table of Contents

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.

...

borderColorpurple
bgColorwhite
borderWidth1
titleBGColor#ddccff
borderStylesolid
titleNew Feature

...

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

 

Image Removed

...



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

Image Added

Rules

The Rules properties

 

have the same properties as seen in Simple Rules Decision



Add Session


Image Modified

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
Image Modified
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

Image Modified

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

Script 
Sub-elementDescription
Input Name
 

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

Image Modified
Delete Input


Image

Image Modified

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

Type 
Sub-elementDescription
Input Name
 
  • 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
Image Modified
Delete Input


Boolean

Image Modified

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

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


Audio MelSpectrogram

Image Modified

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
Image Modified
Delete Input


Numbers

Image Modified

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

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


Text

Image Modified

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

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

Add Output

Text

Image Modified

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

Temporary Variable Name
Sub-elementDescription
Output Name
  
Image Modified
Delete Output 

Add Post Processing

BeanShell Script

Image Modified

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
Image Modified
Delete Post-Processing


Values to Labels

Image Modified

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

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


Euclidean Distance

Image Modified

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 
Image Modified
Delete Post-Processing


Probabilities to Labels

Image Modified

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

Threshold

The Rules properties are defined here:

Sub-elementDescription
Post Processing Name
  
Get Highest Only 
Labels (CSV) 
Temporary Variable Name 
Image Modified
Delete Post-ProcessingRules
Sub-elementDescription
Add RuleAdd a Rule. see Add Rule properties below
Add ActionAdds an Action within the ELSE THEN statement. see Add Action properties below

 

Image Removed

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

Sub-elementDescription
Image RemovedToggle between EQUAL and NOT EQUAL
Split Type
  • AND
  • OR
Add ConditionAdds a Condition within the IF statement. see Add Condition properties below
Add GroupAdds a Group within the IF statement. Properties will be similar in Add Rule properties
Image RemovedDelete Rule
Image RemovedSort - Click and drag to reorder Rule above or below another Rule
Add ActionAdds an Action within the THEN statement.

 

Image Removed

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

Sub-elementDescription
Image RemovedToggle between EQUAL and NOT EQUAL
VariableUser input the variable name
Operation
  • Equal
  • Greater Than
  • Greather Than Or Equal To
  • Less Than
  • Less Than Or Equal To
  • Is True
  • Is False
  • Contains
  • In
  • Regex Match
Value

User to input the value of the Variable

Image RemovedDelete Condition

 

Image Removed

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

Sub-elementDescriptionType
  • Transition
  • Workflow Variable
Transition

Will display a selection of all available transitions based on the selected Route inserted as part of the process flow

Note
titleNote

This field will be displayed if Transition is selected in the Type field.

Workflow Variable

 Will display a selection of all available workflow variables based on the current Process

Note
titleNote

This field will be displayed if Workflow Variable is selected in the Type field.

Value

User to input the value of the selected Workflow Variable

Note
titleNote

This field will be displayed if Workflow Variable is selected in the Type field.

Image RemovedDelete Action