Add missing ScriptProfile parameter options (#4360)

for commandFromItemScript and stateFromItemScript

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
This commit is contained in:
jimtng 2024-08-22 03:42:12 +10:00 committed by GitHub
parent 506ccd4f4d
commit b8e0f94cb0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -242,7 +242,9 @@ public class ScriptTransformationService implements TransformationService, Confi
return null;
}
if (ScriptProfile.CONFIG_TO_HANDLER_SCRIPT.equals(param) || ScriptProfile.CONFIG_TO_ITEM_SCRIPT.equals(param)) {
if (ScriptProfile.CONFIG_TO_HANDLER_SCRIPT.equals(param) || ScriptProfile.CONFIG_TO_ITEM_SCRIPT.equals(param)
|| ScriptProfile.CONFIG_COMMAND_FROM_ITEM_SCRIPT.equals(param)
|| ScriptProfile.CONFIG_STATE_FROM_ITEM_SCRIPT.equals(param)) {
return transformationRegistry.getTransformations(List.of(scriptType.toLowerCase())).stream()
.map(c -> new ParameterOption(c.getUID(), c.getLabel())).toList();
}