I'm trying to use the AttributeManager to rename an attribute and at the same time set a value using a conditional formula. Should this be possible?
Do you mean like this?attributemanager.fmw
No, I want to set a conditional value on the attribute I'm renaming
Hi @egomm
it looks like AttributeManager deals with renaming first and by the time it needs to evaluate @Value(_creation_instance) = 0 there is no _creation_instance attribute. I have filed a PR asking to investigate if AttributeManager behaviour can be improved. For now, I would like to suggest
- calculating the value and assigning it to the new attribute first and then
- removing the old attribute,
i.e. two steps/lines in AttributeManager.
Hi @egomm
it looks like AttributeManager deals with renaming first and by the time it needs to evaluate @Value(_creation_instance) = 0 there is no _creation_instance attribute. I have filed a PR asking to investigate if AttributeManager behaviour can be improved. For now, I would like to suggest
- calculating the value and assigning it to the new attribute first and then
- removing the old attribute,
i.e. two steps/lines in AttributeManager.
I managed it in a similar way by setting the value of the original attribute first and then renaming it in a later step.
Hi @egomm
it looks like AttributeManager deals with renaming first and by the time it needs to evaluate @Value(_creation_instance) = 0 there is no _creation_instance attribute. I have filed a PR asking to investigate if AttributeManager behaviour can be improved. For now, I would like to suggest
- calculating the value and assigning it to the new attribute first and then
- removing the old attribute,
i.e. two steps/lines in AttributeManager.