Convert String to Boolean
The String to Boolean Task is designed to check the value of a string and return true if it matches the expected value. This is a quick way to convert a string field into a Boolean and is used to manipulate data as it is being processed. You also have the option to specify whether the match should be case-sensitive or not.
Configuration
To use this task go to the task tab in your job. Select the task from the drop down and click the plus circle to configure the task. Click done after making any changes to save.
Condition check
It will execute the task when the condition's result is 'true', 't', 'on', '1', or 'yes' (case-insensitive), or run on all conditions if left empty. This condition is evaluated for each document, determining whether the task should be executed based on the specified values.
Example: If I only want to run this task for PDF documents I would use the expression: equals('#{rd.mimetype}',"application/pdf")
Document Field
The field you want 3Sixty to check the value of. To retrieve a list of available fields you can run a BFS job that will give you a list of metadata in an xml file.
Expected Value
The value that you want 3Sixty to search for and match against.
Case Sensitive
Check if you want 3Sixty to find the value regardless of upper case or lower case.
Examples
In the following example, we are going to check the field dc:availability. If the string value of that field equals available (Expected Value) the dc:availability field will be updated to a true(boolean). As we elected not to use case sensitivity, the string AvailAble would also return true. Otherwise, a boolean false value will be stored.
API Keys
Processor: stringToBooleanTask
Key |
Display Name |
Type |
---|---|---|
use_condition | Check a condition before executing this task. | Boolean |
task_condition |
Condition |
String |
task_stop_proc |
Stop Processing |
Boolean |
documentField |
Document Field |
String |
fieldValue |
Expected Value |
String |
caseSensitive |
Case Sensitive |
String |