one of our customers biggest pains is after there month end process, they have to unlock all of there nodes in a workflow inside applications web. They have to unlock each and every locked cell one at a time. With hundreds of cells to unlock, it becomes labourious, often with them asking us to help.
i have created a process which deals with this. This process consists of a model inside Apps Web, which contains a picklist of all the models on a server (apart from itself). The end user picks a model and commits the node. This commit event calls a TI which picks up the picklist choice, passes that picklist choice to another TI, which works out the application ID and then passes it onto the final TI which unlocks every single locked node in the worklow, along with removing the owners.
The TI that unlocks all the nodes is:
Code: Select all
### Get the size of the dimension of the application
vDimSiz = DIMSIZ('}tp_tasks}' | pAppId);
### counter
x = 1;
### Loop around the dimension, get the state of each node in the dimension
### and if that state is not a 0 ie is not available, then make it available
while (x <= vDimSiz);
vDim = DIMNM('}tp_tasks}' | pAppId,x);
vGetState = CellGetS('}tp_application_state}' | pAppId,vDim,'State');
if(vGetState @<> '0');
CellPutS('0','}tp_application_state}' | pAppId,vDim,'State');
CellPutS('','}tp_application_state}' | pAppId,vDim,'CurrentOwner');
CellPutS('','}tp_application_state}' | pAppId,vDim,'CurrentOwnerID');
EndIf;
x = x + 1;
End;
Once this process has finished, you open up the workflow inside applications web and every single node is now available.
We asked IBM about this a couple of years ago, not with the same process but a manual changing of the control cube data, and IBM got back to us saying they would not support it.
My questions are as follows:
does anyone here explicitly reject this idea? Would anyone advise us not to take this approach?
Would anyone recommend this process? Does anyone do anything similar?
We would like to know of the risks involved and if it is worth promoting this to production and releasing to our users, it solves a problem for our customers, but if it is too risky we will not go forward with it.
Any advise would be appreciated, thanks guys.
Trevor.