Using Packages.com.novell.idm.idprovider.IDClient.getNex tID in a Pre
Activity to get an unique ID into a field every time I start the a
Process Request to be able to present the unique ID in the form.
When Submit is pressed Pre Activity runs again and ID Provider make a
new ID and waise one unique ID every time.
Also tried just to put some info in the log with
java.lang.System.out.println in Pre Activity and that code also runs
twise. Before form loaded and after Submit is pressed.
I have no code what so ever in Submit action or in workflow to get the
unique ID except in Pre Activity.
Could someone explain way this happen, thought the Pre Activity only
would be run prior forms?
Using User Application 4.0.1 B, version 37827 on SLES11sp1, 64bit

In the log file you could see that its running twice:
2012-11-28 23:13:43,293 INFO [STDOUT] (http-0.0.0.0-8180-4) 23:13:25
IDClient: Getting ID from "//192.168.100.22:1199/IDProvider"...
2012-11-28 23:13:25,306 INFO [STDOUT] (http-0.0.0.0-8180-4) 23:13:25
IDClient: OK.
2012-11-28 23:13:25,306 INFO [STDOUT] (http-0.0.0.0-8180-4) 23:13:25
IDClient: ID: guest00426
2012-11-28 23:13:43,268 INFO [STDOUT] (http-0.0.0.0-8180-4) 23:13:43
IDClient: Getting ID from "//192.168.100.22:1199/IDProvider"...
2012-11-28 23:13:43,283 INFO [STDOUT] (http-0.0.0.0-8180-4) 23:13:43
IDClient: OK.
2012-11-28 23:13:43,283 INFO [STDOUT] (http-0.0.0.0-8180-4) 23:13:43
IDClient: ID: guest00427
2012-11-28 23:13:43,416 INFO [STDOUT] (pool-13-thread-6) INFO [RBPM]
[com.novell.soa.af.impl.LogEvent:logAFEvent] [Workflow_Started]
Initiated by cn=uaadmin,ou=System,o=HB, Process ID:
7e046ecbc60c4a5586c64a7a3afec32b, Process Name:
cn=_AR_Test,cn=RequestDefs,cn=AppConfig,cn=UserApp lication,cn=DriverSet,ou=System,o=HB:2704,
Activity: Start, Recipient: cn=uaadmin,ou=System,o=HB, Secondary User:
null
2012-11-28 23:13:43,459 INFO [STDOUT] (pool-13-thread-6) 217951701
[pool-13-thread-6] INFO com.novell.soa.af.impl.LogEvent -
[Workflow_Started] Initiated by cn=uaadmin,ou=System,o=HB, Process ID:
7e046ecbc60c4a5586c64a7a3afec32b, Process Name: cn=_A.....


--
ar
------------------------------------------------------------------------
ar's Profile: https://forums.netiq.com/member.php?userid=1816
View this thread: https://forums.netiq.com/showthread.php?t=46279