Hello all,
Although I have hacked my way through a few Intralink Toolkit apps at this point, I was hoping for a little insight from some fellow users on a particular problem I am having...
I am trying to make a trigger that will automatically modify an object's revision if it gets demoted from a 'released' RL. So far, I have the following below. Maybe someone can point out something I'm missing...
First, my trigger is a PrePromote trigger. Additionally, I have a Pro/Intralink Toolkit app that runs too (since the trigger can't check-out, modify rev, etc. - please tell me if I'm wrong here).
My standaolne app works fine... it checks-out a CS object, modifies it's revision by 1, and checks it back in. Running this seperately works perfectly.
At this point, all my trigger does is run my standalone app. This is where I get stuck. Passed to my trigger function in argv is a number of (so far only one) HPDMPARTICIPANTs. From here I can get the PIV of the object being demoted. What I would like, is to have my standalone app run, and then substitute the PIV passed to my trigger with the freshly checked-in PIV from my standalone app... the demotion would continue, but with the newly revised PIV instead of the one originally chosen by the user. Again, this is where I am stuck.
How do I demote the new PIV instead of the original - I want to keep the original right where it is (at the 'released' RL). I have tried playing with the argv pointer to make it point to a different HPDMPARTICIPANT in order to 'fool' Ilink, but I can't seem to get it to work. Is there some other way, or maybe I need to rethink my whole process. Any help would be greatly appreciated...
Thank you,
Richard
Although I have hacked my way through a few Intralink Toolkit apps at this point, I was hoping for a little insight from some fellow users on a particular problem I am having...
I am trying to make a trigger that will automatically modify an object's revision if it gets demoted from a 'released' RL. So far, I have the following below. Maybe someone can point out something I'm missing...
First, my trigger is a PrePromote trigger. Additionally, I have a Pro/Intralink Toolkit app that runs too (since the trigger can't check-out, modify rev, etc. - please tell me if I'm wrong here).
My standaolne app works fine... it checks-out a CS object, modifies it's revision by 1, and checks it back in. Running this seperately works perfectly.
At this point, all my trigger does is run my standalone app. This is where I get stuck. Passed to my trigger function in argv is a number of (so far only one) HPDMPARTICIPANTs. From here I can get the PIV of the object being demoted. What I would like, is to have my standalone app run, and then substitute the PIV passed to my trigger with the freshly checked-in PIV from my standalone app... the demotion would continue, but with the newly revised PIV instead of the one originally chosen by the user. Again, this is where I am stuck.
How do I demote the new PIV instead of the original - I want to keep the original right where it is (at the 'released' RL). I have tried playing with the argv pointer to make it point to a different HPDMPARTICIPANT in order to 'fool' Ilink, but I can't seem to get it to work. Is there some other way, or maybe I need to rethink my whole process. Any help would be greatly appreciated...
Thank you,
Richard