In an ideal world I'd like to directly set the value of an attribute to just be a totally random numer.
I couldn't find a way to directly set an attribute so I've been attempting to set a custom input on the screen, however it doesn't seem to be executing the script or if it is, it's not updating the attribute and the box I'm using to update isn't being displayed on screen.
OraclePolicyAutomation.AddExtension({
fullCustomInput: function(control, interview) {
if (control.getProperty("type") === "randomnumber" {
return {
mount: function(el) {
control.setValue(Math.random());
},
update: function(el) {
control.setValue(Math.random());
}
}
}
}
});
I need the random number for setting the ID on an inferred instance to overcome some issues I've been having.
There's a very specific workflow powered by a connector framework I'm trying to enable. Multiple submissions between users, multiple stages and the option to send a user back to a checkpointed state to rework. The last one being the important one - because it's loading a checkpoint I can't seed in data without turning on refresh data (which then means I can't have a read only state once it's been finished, which isn't practical) or use timestamp.
There's loads of ways around it in the back end, none of them nice or acceptable to add for a single workflow mode.
Any ideas?