If you think that something doesn't work in Aware IM post your message here
#29118 by hpl123
Thu Jul 10, 2014 5:43 pm
Hi support / all,
I have rule that checks if a picture attribute was changed and if so executes an action and this rule fires all of the time even when the picture attribute was not changed (change in my head meaning the picture was deleted, replaced etc.). Is this a bug or intended behavior?

The rule is:
"If MyBo.MyImage WAS CHANGED Then
Action"

All thoughts appreciated. Thanks

#29130 by aware_support
Fri Jul 11, 2014 3:08 am
Probably a bug if you are sure that it is always fired...
#29136 by hpl123
Fri Jul 11, 2014 11:44 am
I have seen this over and over agfain but will run some additional tests and get back to you.
#31327 by RLJB
Thu Feb 12, 2015 3:32 am
I can confirm this is happening, also on Document style attributes too.
#41541 by RentProperty
Tue Nov 22, 2016 8:11 am
Hi support, has this issue ever been resolved? I am still seeing this happening on documents. So I have my documents in a file system and every time I save the object that contains the document attribute it triggers the rules that fall under "If DocumentRecord.Document WAS CHANGED AND DocumentRecord.Document IS DEFINED THEN XXX"

Very performance intensive if the system has to export to File System EVERY time an object is saved.

I am using AIM 7.1 Build 2237

Please let me know if anyone else is seeing this. I will prepare a BSV if needed.

Thanks
#41679 by BenHayat
Mon Dec 05, 2016 2:07 am
aware_support wrote:Well, avoid checking WAS CHANGED for pictures and documents - this appears to be a limitation


I'm in the same boat now, because if an image (as file system) was changed to deleted, I have to make data changes to the BO that owned the image.
When you say avoid checking, then how else can we do the proper actions when we have no events or any way to find out?
For example when a new image is uploaded we read Image metadata and store it in BO, if the image was replaced or deleted, we have to know to modify previous metadata stored in BO.
#41686 by 4xjbh
Mon Dec 05, 2016 9:24 am
Can you check the current (new) and old value for a document and if different update meta data or do some other task?
#41736 by ACDC
Tue Dec 06, 2016 2:41 pm
If you use the following FILE functions on the object containing the Document attribute then you could monitor a change on any one of these attributes. So if the file name or file size changes it would indicate a new file has been uploaded or deleted and your rule can run accordingly - (I am not sure if these functions will apply to a Picture Attribute)

Create 3 additional Attributes i.e. FileExtension, FileName,FileSize and then insert a rule on the object to update as follows:
Object.FileExtension=FILE_EXTENSION(Object.Document)
Object.FileName=FILE_NAME(Object.Document)
Object.FileSize=FILE_SIZE(Object.Document)

BTW, I see there is also a FILE_LAST_MODIFIED function which could work in the some way to be more precise
#41751 by BenHayat
Tue Dec 06, 2016 6:31 pm
ACDC wrote:If you use the following FILE functions on the object containing the Document attribute then you could monitor a change on any one of these attributes. So if the file name or file size changes it would indicate a new file has been uploaded or deleted and your rule can run accordingly - (I am not sure if these functions will apply to a Picture Attribute)

Create 3 additional Attributes i.e. FileExtension, FileName,FileSize and then insert a rule on the object to update as follows:
Object.FileExtension=FILE_EXTENSION(Object.Document)
Object.FileName=FILE_NAME(Object.Document)
Object.FileSize=FILE_SIZE(Object.Document)

BTW, I see there is also a FILE_LAST_MODIFIED function which could work in the some way to be more precise


Yes, your suggestion worked for me. Thanks again!
#47051 by BobK
Mon May 07, 2018 2:51 pm
Ben,

Does your solution use FILE_LAST_MODIFIED?

Is anybody using FILE_LAST_MODIFIED?

I am trying to use FILE_LAST_MODIFIED and it always returns the current date.

Tested in Version 8.1 Build 2453
#47052 by BenHayat
Mon May 07, 2018 3:02 pm
BobK wrote:Ben,

Does your solution use FILE_LAST_MODIFIED?

Is anybody using FILE_LAST_MODIFIED?

I am trying to use FILE_LAST_MODIFIED and it always returns the current date.

Tested in Version 8.1 Build 2453


Bob, I tossed that [aware] project out and did it in another platform and moved on with a working app.
#51280 by himanshu
Fri Aug 02, 2019 4:08 am
Above tip help in restricting the rule to execute when there is no change but there is one flaw, it captures date only... if this will capture complete-time includes seconds then will work for best use cases.

In the meanwhile, I will develop a small plugin to replace existing FILE_LAST_MODIFIED to have a complete timestamp.

Thanks Bob!

Who is online

Users browsing this forum: No registered users and 6 guests