Hello, I'm getting trouble with getting correct data from sessions.
I'm using Documentum 5.3 SP2 with Webtop 5.3.
Let's say document promoted to coordination state from new state. The initiator and the signer of document is the same person, the coordinator differs. In a couple of minutes document returned from coordination to signing. When initiator(signer) opens the document attibutes some fields is disabled because of user has no permits BUT the permits was given on the previous stage. It was just the one example, there are many similar situations.
The problem seems to be in outdated session data. When user log out and then log in again everything works fine, but when he remains logged in there are problems. Another way to get it works - wait for timeout, which is 5 minutes long. I suppose that session need to be refreshed somehow, to get fresh data about objects and their's permissions.
I've tried to do this using IDfSessionManager methods getSession or newSession, according to developers documentation:
m_session = sessionManager.newSession("docbase_name");
Then i get objects from this session with following releasing of it:
IDfPersistentObject sysobj = m_session.getObject(id);sessionManager.release(m_session);
Nevertheless, it's not working, when i get the permission for that object it's incorrect. I would be appreciate for any suggestions.