Hello,
I am creating a workflow to write and read from a database. My current use case is that I want to run the workflow and type in a project ID. From this project ID I want to search the MySQL database and update the presentation fields with the information that was found. Currently the only thing that displays is "[Ljava.lang.Object;@7b2be5d9" instead of the actual contents. I am using actions to read and write to the database.
In my presentation:
First step - Enter Key
Second Step -- Display project name based off key
In properties, I have the default value set to action "GetAction("Development","getProjectFromDB").call(#key, #table);" (This field populates with"[Ljava.lang.Object;@7b2be5d9").
What I am trying to do is get the field to populate with the contents rather than the JavaObject. I do get the contents once I submit the form and it goes through the workflow.
Action I am currently using is:
var column =
{
jira_key: key
} ;
var unique = false;
var project_result = table.readRecords(column ,unique);
var SplitArraytoString = project_result.toString();
jiraKey = SplitArraytoString.match(key);
System.debug("Project JIRA Key: " + jiraKey);
return jiraKey;
I based my learning off this site: www.vcoportal.de/2012/07/little-cmdb-part1/
Thank you in advanced!
Mike