I have version 2.2.1 of CMDBuild. I try to create synchronous task on card delete in task manager. I pass parameters to process like {server:MAC} but in fact on processes i see null for MAC. For some reason value from the card being deleted is not passing to process. Am I doing something wrong?
Another thing. I found following code in cmdbuild/src/main/webapp/javascripts/cmdbuild/core/proxy/CMProxyTasks.js
"I have version 2.2.1 of CMDBuild. I try to create synchronous task on
card delete in task manager. I pass parameters to process like
{server:MAC} but in fact on processes i see "null" for MAC. For some
reason value from the card being deleted is not passing to process. Am I
doing something wrong?"
Tried {previous:Attribute} :P and looks like there is no complaint in logs, but only when using "after update", and in that case, both {current:} and {previous:} return the same value.
When using "before update" I'm getting NullPointerException and fields are not populated.
:(
Previously Alex wrote:
Hi,
Same, or similar problem, with version 2.3. {server:Attribute} does not populate the field when mapping to the process.
Additionally, when I'm updating a card, specifically a Lookup attribute, how could I access to the previous and new one value?
I understand "{current:} refers to the new value? what engine would be used for the old value?
Thanks!
Previously Konstantin wrote:
I have found the reason. Looks like undocumented feature. In source code I've found that engine "current" should be used. Example: "{current:MAC}"