Author |
Message
|
amjadu |
Posted: Thu Oct 07, 2004 12:56 am Post subject: adding user to workflow |
|
|
 Novice
Joined: 26 Feb 2004 Posts: 13 Location: Banglore, India
|
hi
We are making use of MQ series Workflow in our application. We need to add users to workflow dynamically. We are doing this by creating a fdl and then accessing the command prompt through java code. We want the code following the calling of the cmd to be executed only after the cmd closes after successfully inserting the user. We are making use of Windows NT enviornment. The execution of fdl is taking a long time due to which server gets timed out and our application stops working. Is there any other way by which can create users in Workflow ? Is there any API available for the same?
Regards
Deepa _________________ Regards - Amjad |
|
Back to top |
|
 |
ucbus1 |
Posted: Thu Oct 07, 2004 6:01 am Post subject: |
|
|
Knight
Joined: 30 Jan 2002 Posts: 560
|
If I am correct SYSCOM has a utility package.. But you need to pay for it.
One idea.. But not sure if it would be palatable.
seperate the FDL execution from the code.
Java program will be two parts>
Execute FDL through First part.
Read the FDL output through some script VBSCript, get the error code, then execute second part. |
|
Back to top |
|
 |
vennela |
Posted: Thu Oct 07, 2004 8:26 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
Quote: |
Is there any API available for the same? |
NO
I automated this and this wroks pretty good for me.
Code snippet below
Code: |
Process l_oProcess = Runtime.getRuntime().exec("/usr/lpp/fmc/bin/fmcibie -i=" +l_sNameOfFile +" -y=FMC1 -u=vennela -p password -ot -l=InsertUser.log");
BufferedReader stdInput = new BufferedReader(new InputStreamReader(l_oProcess.getInputStream()));
String OutputFromFmcibie = "";
System.out.println("Here is the standard output of the fmcibie command:\n");
while ((OutputFromFmcibie = stdInput.readLine()) != null) {
System.out.println(OutputFromFmcibie);
} |
|
|
Back to top |
|
 |
amjadu |
Posted: Mon Oct 11, 2004 6:30 am Post subject: |
|
|
 Novice
Joined: 26 Feb 2004 Posts: 13 Location: Banglore, India
|
Hi Vennela,
We too have implemented in the similar way, but its taking a lot of time.
It takes almost an 1hour create the user in WF. Since its an online application, we need to show the user proper message that it will be created. Is there a way to improve the performance of this functionality? _________________ Regards - Amjad |
|
Back to top |
|
 |
hos |
Posted: Tue Oct 12, 2004 12:48 am Post subject: |
|
|
Chevalier
Joined: 03 Feb 2002 Posts: 470
|
Hi,
be careful when using such kind of utilities in a production environment. Import utility is an extra database client and not running under control of the workflow server. You can produce deadlocks if you run it during peek hours! |
|
Back to top |
|
 |
|