My Oracle Support Banner

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 MAY 19, 2022

Applies to:

Oracle Agile PLM Framework - Version 9.3.6.0 and later
Information 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:

  1. 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
  2. Go to Event Management > Event Handlers, and create Script PX
  3. 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
  4. Log into Web Client, and create a Project Template: TEMP-PROJECT01
  5. Go to Schedule tab, and add a Task
  6. Open the Task1, and go to Contents tab
  7. Add a Document D01, and set a Rule (i.e. When D01 is in "Production", set Task1 to "Complete")
  8. 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)
  9. Create New > Projects > From Template, and select the Project template: TEMP-PROJECT01
  10. Give Name, Scheduled Start date, and make sure Optional tab Contents has Content checked on, and Save
  11. Go to Schedule tab of the Project created from Template, and open Task1
  12. Go to Contents tab, and see Document is created with new AutoNumber and added to the Contents tab
  13. 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


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.