on 10-07-2010 8:18 AM
Hi experts ,
Can any one suggest me exact path to check for existing and running System Daemons . Strangely i'm facing issue for certain contracts in Draft status as " Locked by system deamon " . and EDit mode was disabled .
Thanks in Advance,
Tayi
The "Background Task Status" in Admistrative Reports under System Adminstration should help you look for the System Daemon status. Also a peek into the application logs should be able to give you an idea.
Regards,
Parankush
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is there a workflow active?
You can break the workflows as follow: setup => workflow definitions => choose the workflow => Reports => Current workflow processes. Find your document in the table and click the icon to kill it.
Normally it should not be locked anymore. If it is not editable, you can create a script that executes during 'load' and use the 'IAPILockManager' object to unlock it...
HI ,
Only random contracts under Draft status are facing issue . Still now the contracts are locked . Header tab holds message as currently locked by system Deamon as of 26/oct/2010 . Under workflow setup => workflow definitions => choose the workflow => Reports => Current workflow processes for draft work flow definition .. I'm not able to view any contract documents . ONly Contracts/agreements are facing this issue .
Can you pls clear me on Script .. I Tried with script for Contracts under Draft status and uneditable items to be unlocked . .but no use
Thanks,
Tayi
You can try to create a script which will execute during load (Target = Loaded) for the object Agreements.
In this script you can use the LockManager object to unlock the document:
lockManager = new IapiDocumentLockManager();
lockManager.unlockDocument(session,doc);
Be aware that once you open any Agreement, this script will execute. So it can unlock agreements you don't want to be unlocked. To avoid this it's better to build an extra logic to avoid this from happening (so that it will only execute the code for the desired agreement)
Hi ,
Thanks for your reply . Below is the code i'm trying to implement for unlock of Agreements under Draft Status and i mentioned Target as "LOADED"
// Create a logger for debugging purposes
LogMessageIfc log = Logger.createLogMessage(session);
ApplicationException ae = new ApplicationException(session);
vlvHome = IBeanHomeLocator.lookup(session, doc.getStatusRef());
vlv = vlvHome.find(doc.getStatusRef());
if (vlv.getDisplayName().equals("Draft")){
parent = doc.getParentIBean();
lockManager = new IapiDocumentLockManager();
lockManager.unlockDocument(session,doc);
//IapiDocumentLockManager.unlockAll(session,doc);
No use .. It's not working .
Quick overview of issue - Agreements in random under Draft status with out any contract documents are facing this issue . Can you please suggest me . It's a critical
Thanks in Advance,
Tayi
Edited by: TDeepika on Dec 16, 2010 7:26 AM
Can you try to do it for one specific agreement?
e.g. get the name of the agreement (for example AGR-0001)
lockManager = new IapiDocumentLockManager();
name = "AGR-0001";
if(doc.getDisplayName().equals(name))
{
lockManager.unlockDocument(session,doc);
}
Then open the agreement and see if it is still locked...
Just see if this works. I think, for the VLV, you should pass the 'session' variable as a parameter.
if(vlv.getDisplayName(session).equals("Draft"))
So if I understand correct, Master Agreements are being locked when entering the phase draft. There is no workflow attached or anything? The document is not being locked by a script neither?...
Do you have direct access to the database?...Maybe you can check out the following:
FCI_AGREEMENT --> Get the object ID of an agreement that is being locked
FCI_DOC_LOCK --> Create the following filter: DOCREF_OBJECT_ID = OBJECTID of the agreement
Check out the column LOCK_MODE?....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.