This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Error while adding a task with a directive in a vault application

Hello,

at the moment I am trying to add a task to the VAF TaskManager inside a vault application.

For this I have implemented a directive to save the necessary data of the current operation for the task. The data in the directive is a string, a VAF Confiugruation, a SearchConditionsJA-Object and the current ObjVerEx-Object.

When I want to add the task to the TaskManager I get the following error:

Error getting value from 'ManagementOperationsAccess' on 'MetadataCacheVault_Dyn'.

Does anybody know, how I can fix this problem?

Thank you.

Greetings from germany 

Michael

Parents
  • I'm not 100% sure what's happening here, but you need to be very careful about what you expose on a directive.  Everything should be serializable.

    The current ObjVerEx instance, for example, is definitely not serializable.  You will need to save the constituent parts (e.g. ID and type) as integers, and then create the ObjVerEx instance when you process the task.  Alternatively you can use/wrap the ObjIDTaskDirective class from the VAF Extensions to do this.

    Regards,

    Craig.

Reply
  • I'm not 100% sure what's happening here, but you need to be very careful about what you expose on a directive.  Everything should be serializable.

    The current ObjVerEx instance, for example, is definitely not serializable.  You will need to save the constituent parts (e.g. ID and type) as integers, and then create the ObjVerEx instance when you process the task.  Alternatively you can use/wrap the ObjIDTaskDirective class from the VAF Extensions to do this.

    Regards,

    Craig.

Children
No Data