arago / graphit-tool

(Unofficial) Python library to work with the HIRO Graph, a semantic datastore for the arago HIRO Automation Platform.
https://arago.co
MIT License
5 stars 4 forks source link

Can I create any variable with this tool. #3

Open II-VSB-II opened 6 years ago

II-VSB-II commented 6 years ago

Hi, I want to know Can I create any variable or update any variable for an issue when issue is in processing state.

For example: My issue is in pending state because a variable whose value is "NO" and now issue will process further if I changed the value of the variable to "YES".

mklemm2 commented 6 years ago

Hi,

The way how issues are synced between the HIRO Graph and the HIRO Engine currently prevents anything the resembles "VarSet" from the KI language, e.g. changing "NO" to YES. You can, however, add new values to a variable like "VarAdd" (as you certainly know, all variables are actually lists in HIRO).

So in your scenario, you can add a second value with contents "YES" and any KI that triggers on that condition will do so. But the old value "NO" will remain present as well.

mklemm2 commented 6 years ago

Sorry, just saw that this feature is only available in my private development branch. So make that "It will be possible next week".