Background; Academy offers to download a working (live realistic?) sample for learning on REFramework. Despite the fact this sample seems outdated and is not complete (doc’s, app and proper instructions on particular parts is missing) I’m trying to get it up-and-running, simple to learn from it!
However, I’m stucked on one particular spot: fetching Orchestrator assets! Does it really accept only a ‘Hard coded’ string to map an item as offered on the select list? I can’t image this is true!
The latest version of this activity ‘GetRobotAsset’ offers to store the Orchestrator Folder Path (optional) which means the path to the folder containing the ‘Assets’ in the cloud. These Assets are KeyValue-pairs in which the values are actually strings (except the Credential), so far so good!
Next the troublesome part!
Asset Name [REQUIERED] - It is NOT possible to store a variable into it. As suggested in the same code. It is suggested to use a variable which holds the key (Name) fetched from the config file.
However, this box accepts only the clear name.
It seems not to act as a standard inputbox (it is so much more a select box which offers the assets (which also can be seen in the Data Manager) coming from Orchestrator (if the correct environment or Orchestrator Folder has been chosen).
Except that in this REFramework sample; a) ‘Dispatcher’ flow including the data file, and b) the UiDemo app itself aren’t supplied, it is pretty strange that within the ForEach, which means from each row from the config file from sheet ‘Assets’ the field ‘Name’ is picked up as [row(“Asset”).ToString] which actually holds the Name ‘UiDemo_ApplicationPath’ (sample) to be used as a key to match with the asset name from Orchestrator to pickup the related value (in this case should be the url to the app spot, that’s what the name suggests) can NOT be used in the ‘input-select-box’-called Asset Name. This box only accepts a ‘Hard coded’ value which maps with an item on the select list.
‘[row(“Asset”).ToString’’ holds the name ‘UiDemo_ApplicationPath’], it can NOT be used to map ‘UiDemo_ApplicationPath’ which is offered as a selectable item. More or less analog to the switch activity in which also no variable can be used only a ‘hard coded’ string.
Is this really true, it is designed like this? It means, to fetch a corresponding value from Orchestrator within the TryCatch in the ForEach looping thru a list of ‘Names’ fetched from the Asset-sheet (config file), it needs a much more complex construction with a Switch- or If-filter with hard-coded strings to fetch the proper asset-value.
It is difficult to imagine this is the way this sample works now-a-days, It seems that the comparable activity in the legacy project does a better job! Hopefully I’m not correct!
Screenshots are pretty well self explaining
- Situation
- Problem