Getting a decision text in a script
The article provides an example of a script for moving a decision text to a context variable.
The script uses: Context.Document1 - a context variable that stores the document and context.DecisionText - a variable that will display the decision text, has the Text type.
For the script to work correctly, add the following assemblies:
EleWise.ELMA.Documents
EleWise.ELMA.Documents.Docflow
namespaces:
using EleWise.ELMA.Documents.Managers;
using EleWise.ELMA.Documents.Models;
using EleWise.ELMA.Documents.Models.Tasks;
using EleWise.ELMA.Model.Common;
using EleWise.ELMA.Model.Managers;
using EleWise.ELMA.Tasks.Models;
context.DecisionText = context.Document1.Resolution.FirstOrDefault().Results.FirstOrDefault().Text;