SET SERVEROUTPUT ON;
SET ECHO ON;

prompt ========================================
prompt Tracking WORKFLOW_MANAGER Package Version
prompt MARS-1011: Record version 1.7.1 in tracking system
prompt ========================================

BEGIN
   DBMS_OUTPUT.PUT_LINE('Tracking WORKFLOW_MANAGER version...');
   CT_MRDS.ENV_MANAGER.TRACK_PACKAGE_VERSION(
      pPackageOwner => 'CT_MRDS',
      pPackageName => 'WORKFLOW_MANAGER',
      pPackageVersion => CT_MRDS.WORKFLOW_MANAGER.PACKAGE_VERSION,
      pPackageBuildDate => CT_MRDS.WORKFLOW_MANAGER.PACKAGE_BUILD_DATE,
      pPackageAuthor => CT_MRDS.WORKFLOW_MANAGER.PACKAGE_AUTHOR
   );
   DBMS_OUTPUT.PUT_LINE('WORKFLOW_MANAGER version tracked successfully.');
   
   -- Display current version info
   DBMS_OUTPUT.PUT_LINE('Current Version: ' || CT_MRDS.WORKFLOW_MANAGER.GET_VERSION());
   DBMS_OUTPUT.PUT_LINE('Build Info: ' || CT_MRDS.WORKFLOW_MANAGER.GET_BUILD_INFO());
EXCEPTION
   WHEN OTHERS THEN
      DBMS_OUTPUT.PUT_LINE('ERROR tracking WORKFLOW_MANAGER: ' || SQLERRM);
      RAISE;
END;
/

prompt ========================================
prompt WORKFLOW_MANAGER Package version tracking completed
prompt ========================================