My Oracle Support Banner

Checkin Event on Multiple Files Not Returning Correct Item Revision (Doc ID 2170736.1)

Last updated on JANUARY 24, 2024

Applies to:

Oracle Agile PLM Framework - Version 9.3.3.0 to 9.3.5.0 [Release 9.3]
Information in this document applies to any platform.

Symptoms

Actual Behavior

When the item has files with multiple files are added to one file folder, file checkin event program will return item's revision as Introductory even though file checkin is performed on its released revision.

Expected Behavior

When the item has files with multiple files are added to one file folder, file checkin event program to return the correct item's revision which the file check in was performed.

Steps to Reproduce

  1. Copy sample CheckinSample.jar to %Agile_Home%\integration\sdk\extensions
  2. Login to Java Client as admin user, and configure below event:
    1. Event
      Event Type: Check in File
      Name: Item - Check in File
      Object Type: Item
    2. Event Handler
      Name: [Sample] Item - Check in File [Pre] Event handler
      Handler Type: Java PX
      Event Action:agile.sample.event.item.ItemCheckInFilesPreHandler
    3. Event Subscriber
      Name: [Sample] Item - Check in File [Pre] Event
      Event: Item - Check in File
      Event Handler: [Sample] Item - Check in File [Pre] Event handler
      Trigger Type: Pre
      Execution Mode: Syncronous
      Error Handling Rule: Stop
  3. Login to Web Client
  4. Create Item P01, and add two attachment A.txt, B.txt. Add so that files will be added to one file folder
  5. Add item P01 to Change ECO1, and release with revision "01"
  6. Open revision "01" of item P01, and checkout attachments A.txt, B.txt
  7. Checkin attachments A.txt, B.txt
  8. Check History tab. See below action:
    See record: User Defined Action: [Sample] Item - Check in File [Pre]
    Event handler: Item Revision : Introductory

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
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.