Create Event/Save As Event for Document Is Not Tiggered when Creating Project from Template with Document in the Contents Tab
(Doc ID 2870463.1)
Last updated on JANUARY 24, 2024
Applies to:
Oracle Agile PLM Framework - Version 9.3.6.0 and laterInformation in this document applies to any platform.
Symptoms
Actual Behavior
There is a Project Template with Documents added to the Contents tab.
When Creating a new Project from Project Template, new Document will be created in the Contents tab of the newly created Project.
However, Create Event/Save As Event for Document object is not triggered when the Document is created by performing Create Project from Template.
Expected Behavior
Event to be triggered when the Document is created by performing Create Project from Template, so that the information of the created Document can be updated automatically.
Steps
The issue can be reproduced at will with the following steps:
- Log into Java Client as admin user, and go to Admin tab > System Settings > Event Management > Events, and create below Events:
- Create Object Event for Object Type: Documents
- Save As Object Event for Object Type: Documents - Go to Event Management > Event Handlers, and create Script PX
- Go to Event Management > Event Subscribers, and create Event Subscribers with:
- Create Document Object Event created in step 1, Script PX created in step 2
- Create Save As Object Event created in step 1, Script PX created in step 2 - Log into Web Client, and create a Project Template: TEMP-PROJECT01
- Go to Schedule tab, and add a Task
- Open the Task1, and go to Contents tab
- Add a Document D01, and set a Rule (i.e. When D01 is in "Production", set Task1 to "Complete")
- Set AutoNumber to Document Number
(If you get error this field cannot be updated, add "Activities.Content.Autonumber " to the AppliedTo of privilege "Modify Programs, Phases, tasks & Gates that I am owner of", and try again) - Create New > Projects > From Template, and select the Project template: TEMP-PROJECT01
- Give Name, Scheduled Start date, and make sure Optional tab Contents has Content checked on, and Save
- Go to Schedule tab of the Project created from Template, and open Task1
- Go to Contents tab, and see Document is created with new AutoNumber and added to the Contents tab
- Open the Document, and go to History tab. See Create Document action with Details "Save From Class Documents: Name D01" is recorded, but do not see User Defined Action recorded. Create/Save As Document Event is not triggered
Changes
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Changes |
Cause |
Solution |
References |