Initiating a new process via code

Hi all,
I've read examples in the documents for initiating a new process with API's.
The problem is that the process instance state is -1, has anyone an idea about how to make it work and be able to pass the process instance to the next role? (I've tried with workitems but...)
Thanks a lot for your help,
damoon

Hi all,<br />Still a little stuck on this problem. <br /><br />When calling :<br />StateLessWorkItemData.Begin(strProcRef, XMLData)<br /><br />i pass strProcRef that is the string returned by StartTaskAdobe.CreateProcessInstance(strProcName)<br /><br />and<br /><br />XMLData loaded from a local file that i got as Sanna said<br />body of this file is :<br /><?xml version="1.0" encoding="UTF-8" standalone="yes"?><br /><start><br /><FR_NAME>username</FR_NAME><br /><MSGSUBJECT>subject</MSGSUBJECT><br /><FOLLOWUP></FOLLOWUP><br /><JFWF_ACTION>start</JFWF_ACTION><br /><JFWF_CHOICE></JFWF_CHOICE><br /><JFWF_AGENT></JFWF_AGENT><br /><JFWF_DELEGATE></JFWF_DELEGATE><br /><JFWF_DEBUGACTOR>initiator_name</JFWF_DEBUGACTOR><br /><JFWF_STATUS>RECEIVED</JFWF_STATUS><br /><JFWF_TRANSPORT>HTTP</JFWF_TRANSPORT><br /><JFWF_VERSION>6.2</JFWF_VERSION><br /><JFWF_INSTRUCTION>auto_launch_issue</JFWF_INSTRUCTION><br /><JFWF_READONLY>0</JFWF_READONLY><br /></start><br /><br />Does anybody gets where the error is?<br /><br />Thx once more

Similar Messages

  • Change form of output signal without initializing new process of output signal

    Hello!
    How to change form of output signal produced on the output channel without initializing new process of output signal?
    Thanks 
    Message Edited by _Pavel_ on 10-28-2009 05:21 PM
    Solved!
    Go to Solution.

    I'm working with LabView 8.5.1.
    I have periodic TTL impulse with constant frequency – signal to start , which I'm used to start data acquisition (PCI-6251)and generation signal (PCI-6221).
    When TTL signal a detection, necessary generation some analog signal (PCI-6221) and acquisition other analog signal (PCI-6251).  Then wait following TTL signal.
    At this moment I write the part of the program which is responsible for data acquisition. Function retriggering (In examples C:\ProgramFiles\National Instruments\LabVIEW8.5\examples\DAQmx\Synchronization\Multi-Function.llb\Multi-Function-CtrRetrigg Pulse Train Generation for AI Sample Clock.vi) is used. This function necessary,because we start data acquisition each time on arrival TTL impulse, andrepeated creation of the virtual channel of data acquisition with the newtrigger spend a lot of time.
    The problem consists in the following. Generation of the data from other card should occur on the same impulse TTL as for the data acquisition card and then generation zero value.
    How I can realize it? I planned to change the form of an impulse of generation when detected TTL an impulse, without reinitialize process.

  • Initiating a process via the GP API

    Hi,
    I am writing code that starts a GP process via GP API.  Is there way to discover the appropriate processID without using the GP Design-Time UI.  For example,  the code:
    IGPProcess process = GPProcessFactory.getDesigntimeManager().getActiveTemplate(processId, user);
    requires the processID. 
    Is there a way that I can find the processID via the GP API.  Perhaps,  by using the path to the appropriate process ("Examples/Time-Off Process/Time-off Process").
    Thanks
    Dick

    Hi Richard,
    You can find the process ID in the "Instantiation" tab of the process in the Design Time.
    Otherwise, you can create your own application that retrieves the processes list and you can pick one of them.
    The method "getRootCategory" will return you the root folder in the gallery. Then, the method "getActiveProcessTemplateByCategory" will return you a list of process template info objects. There you can aslo get the ID.
    Hope this helps.
    Best regards,
    David

  • How to insert a new attachment via java code

    Hi everybody,
    I need add a new attachment via java code. I found the service EDIT_RENDITIONS on the Add Attachments page. But this service is not documented. Does somebody have a example how to add attachments?
    Thank you
    Martin

    Martin,
    Try the following code:
    final IdcClientManager clientManager = new IdcClientManager();
    IdcClient client;
    try {
        client = clientManager.createClient(IDC_PROTOCOL + RIDC_SERVER + ":" + RIDC_PORT);
        final String username = "sysadmin";
        final DataBinder dataBinderReq = client.createBinder();
        ServiceResponse severiceResponse = null;
        dataBinderReq.putLocal("IdcService", "EDIT_RENDITIONS");
        dataBinderReq.putLocal("dID", "1560"); // as integer
        dataBinderReq.putLocal("dDocName", "DEV2_001509"); // as string
        dataBinderReq.putLocal("renditionKeys", "addRendition0"); // as string
        dataBinderReq.putLocal("addRendition0.name", "theFileName");
        dataBinderReq.putLocal("addRendition0.description", "theFileDescription");
        dataBinderReq.putLocal("addRendition0.action", "edit");
        final String fileName = "c:\\test.txt";
        final File file = new File(fileName);
        final TransferFile tf = new TransferFile(file);
        dataBinderReq.addFile("addRendition0.file", tf); // as byte
        severiceResponse = client.sendRequest(new IdcContext(username), dataBinderReq);
        final DataBinder dataBinderResp = severiceResponse.getResponseAsBinder();
        //  DataBinder resultado = severiceResponse.getResponseAsBinder();
        System.out.println(dataBinderResp.toString());
    } catch (final IdcClientException e) {
        System.out.println(e.getMessage());
        e.printStackTrace(System.out);
    Jonathan
    http://jonathanhult.com

  • Invoking a BPEL Process via Java Remote Client

    Hi everyone!
    I want to invoke a BPEL process from my Java Application which is not running on the same Application-Server (not the same Java RE) as the BPEL processmanager does.
    For Applications running on the same AS there is the IDeliveryService class to which you can send a XML-request in order to invoke a BPEL process.
    Is the only way to invoke a BPEL Process from an external application to use a webservice client or is there a similar class for java remote clients?
    For access to the users worklist I use
    IWorkflowServiceClient wfClient = WorkflowServiceClientFactory.getWorkflowServiceClient(WorkflowServiceClientFactory.REMOTE_CLIENT);
    it works fine an I thought there might be a similar way to invoke a bpel process via remote too.
    If anyone knows if it's possible or not please tell me ;)
    Thanks in advance
    Markus

    Hello,
    Here is the code I use:
    Properties props = new Properties();
    Locator locator = null;
    props.put("orabpel.platform", "ias_10g" );
    props.put("java.naming.factory.initial","com.evermind.server.rmi.RMIInitialContextFactory" );
    props.put("java.naming.provider.url","opmn:ormi://host:port/orabpel" );
    props.put("java.naming.security.principal", "adminuser" );
    props.put("java.naming.security.credentials", "mdp" );
    String securityCredentials = "adminuser";
    String selectedDomain = "default";
    locator = new Locator(selectedDomain,securityCredentials,props);
    IBPELProcessHandle procs[] = locator.listProcesses();
    The error is:
    Exception in thread "main" java.rmi.UnmarshalException: Error deserializing return-value: java.io.InvalidClassException: com.oracle.bpel.client.BPELProcessHandle; local class incompatible: stream classdesc serialVersionUID = 5429682712928177644, local class serialVersionUID = 8176841433835717563
    at com.oracle.bpel.client.util.ExceptionUtils.handleServerException(ExceptionUtils.java:82)
    at com.oracle.bpel.client.Locator.listProcesses(Locator.java:309)
    Thanks for help.
    Edited by: 857737 on 14 sept. 2012 10:00

  • Use web service to invoke a new process execution

    Hello,
    I'm using BPM 10g3, and i'm trying to invoke a fully automated process via a web service
    I've setup my web service http://<host>:<port>/albpmServices/<engine name>/ws/<process name>ServiceListener?wsdl
    I've accessed it from a C# application i wrote and visual studio did identify my functions and such.
    I can successfully start a new session (startSession(string password ,string username) and i get a sessionID back) with the web process.
    but when im trying to invoke my own function (which is defined in the Process web service as a Process Execution on my beginIn parameters) I get a response with a FaultException with no visible error code.
    In the BPM log I can see the folloowing lines:
    1) Invoking service with id:<Process Name>ServiceListener
    2) Executing item: IMMEDIATE Inst [-1, -1,-1] Act [No activity] Proc [No Process] Due 1318860646000000]
    3) TransactionAction: Rollback!
    while the TransactionAction: Rollback! means that something bad happened, i cant see the reason.
    any idea's?

    OK i've got it working.
    I did all the things you suggested before but when you said i need to see that the right activity is being started i understood what's wrong
    The chosen activity must be in a lane with the same role as the user login in to the session.
    So i added a role on Begin and created a participent for that role, logged in with it and now it works =)
    Edit: I'm the same guy that opened the threqad, just needed to make a new user for enterprise support (didn't get to use that though)
    Edited by: 891957 on 23:59 17/10/2011

  • Design the New process set up for Materials in one physical stock plant

    Hi Experts,
    The requirement is one physical plant as two different logical plants in the system. The main issue is how to administrate or how to find the set up which allows one Physical warehouse in Hamburg which we have supplying two Logical warehouses in the system without having thru really physically separate the warehouses into two different ones. Materials physically will be only for one warehouse.
    Requirement is for Design the New process set up for Materials in one physical stock serving plant into two different system plants.
    Most of the things are pointing in the direction that order Backlogs will not be converted into new organization. We have backlogs for the material requirements for purchase orders, sales orders whatever we have in the current setup; then there will have all are new orders from the certain dates taking in the  new organization set up. These backlogs are very long at least three to four years.
    We would like to find some way to have the all the material requirements ending up in one basket instead of two baskets. That still be able to deliver at least in system point of view from two different baskets.
    We need to do analysis on one physical stock serving plant into two different system plants that could be done either by material master data or as i understood that could be from PS side.
    can any one please tell me how we can maintian this setup in the system.
    Please provide your valuable inputs.
    Brgds,
    RK

    RK,
    Sorry, the creation of such an end-to-end solution is outside the scope of an online forum.  Most consulting companies would send a multi-disciplinary team to perform this task, and would take several weeks to research your requirements, and come up with a prototype.
    Sales order availability checking is described in SAP online help
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/93/744b51546011d1a7020000e829fd11/frameset.htm
    I will say this.  If your goal is to have two plants, with two company codes, and you wish to only procure or produce in one of the plants, then generally I would recommend using Special Procurement via Stock Transport Order (in standard SAP, Special Procurement 40).  This based on a very small knowledge of your requirements.  I have already cited the Sap online help for special procurement.
    SAP online help for Warehouse management is at
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/c6/f8386f4afa11d182b90000e829fbfe/frameset.htm
    As you begin to read the required topics, I am certain you will realize that this task is beyond the capability of an untrained person.  I again suggest that you search for professional consulting services to assist you in this project.  It will be money well spent.
    I am now closing my responses to this thread.  Good luck in your project!
    Best Regards,
    DB49

  • Authorization Error  While  Invoking BPEL Process Via RMI

    Hi All,
    I have been trying to invoke BPEL Process via RMI client.
    I use the following piece of code for BPEL Process Invocation...
    public class RMIClient {
    public RMIClient() {
    public static void main(String[] args){
    Hashtable jndi = new Hashtable ();
    jndi.put (Context.PROVIDER_URL, "opmn:ormi://host:6010:oc4j_soa/orabpel");
    jndi.put (Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
    jndi.put (Context.SECURITY_PRINCIPAL,"oc4jadmin"); // username of Bpel Manager
    jndi.put (Context.SECURITY_CREDENTIALS,"welcome1"); //password of BPEL Manager
    Locator locator=null;
    try {
    locator = new Locator("default",jndi);
    } catch (ServerException e) {
    e.printStackTrace();
    IDeliveryService deliveryService =
    (IDeliveryService)locator.lookupService
    (IDeliveryService.SERVICE_NAME );
    // construct the normalized message and send to oracle bpel process
    NormalizedMessage nm = new NormalizedMessage( );
    String xml = "<ns1:MyFirstBPELProjectProcessRequest xmlns:ns1=\"http://xmlns.oracle.com/MyFirstBPELProject\">\n" +
    " <ns1:input></ns1:input>\n" +
    " </ns1:MyFirstBPELProjectProcessRequest>";
    nm.addPart("payload", xml );
    NormalizedMessage res=null;
    try {
    res = deliveryService.request("MyFirstBPELProject", "process", nm);
    } catch (ServerException e) {
    e.printStackTrace();
    } catch (RemoteException e) {
    e.printStackTrace();
    Map payload = res.getPayload();
    When I try to connect to my locally deployed BPEL process Manager and Invoke the same process (MyFirstBPELProjectProcess ) it works fine and creates an Instance on BPEL Process Manager Console.
    When I tried Invoking the same BPEL process (MyFirstBPELProjectProcess ) deployed on a Remote machine ,it doesnt create an Instance.
    I believe my connections settings are all correct ,since it doesnt give me an connection issue on my standalone client.
    I tried looking at the following file default_group~oc4j_soa~default_group~1.log available opmn folder under SOA Suite OAS and there
    are no errors.
    Could some body point the log files that I need to look at.
    I am sort of clueless...
    Regards
    Harish

    CAn you post the error. HAve you made sure that the remote machine has connection on the port 6010. You can test this with the folloing command from the remote machine
    telnet host 6010
    obviously replace host with the fully qualified host name of the SOA machine.
    cheers
    James

  • SSIS package fails in sql server agent wirh 'Process exit code "-532459699" runs fine when run independantly

    I have a SSIS package that fails when running via sql server agent.  I can successfully run it from BIDS.    I have created a proxy account that is in the local server administrators group and is sysadmin.  SQL Server Agent and SQL
    Server Integration Services  are running under the same account,
    following the the error message:
    Error: 2014-02-07 10:29:12.59
       Code: 0xC0029151
       Source: Execute De-linking Execute Process Task
       Description: In Executing "d:\cie\files\working\9426\PowerpointConsole.exe" " 60.ppt" at "d:\cie\files\working\9426", The process exit code was "-532459699" while the expected was "0".
    End Error
    This package ran successfully on a different server running windows 2003 and sql server 2008 r2.  The new environment is windows 7 with sql server 2008 r2.

    Hi Gaileg,
    As Abhinav said, to check whether it is a 32-bit/64-bit issue, please check whether the package runs in 32-bit runtime mode or 64-bit runtime mode in BIDS by checking the Run64bitRuntime property of the project. Then, make sure the package runs in the same
    runtime mode in the SQL Server Agent job by checking or unchecking the “Use 32 bit runtime” option for the Execution options of the job step.
    If it is not the issue, please create another job that uses a CmdExec type job step to call the executable “D:\cie\files\working\9426\PowerpointConsole.exe”. If this job also fails, the issue is actually occurs because of the issue between executable and
    SQL Server Agent rather than the SSIS package itself.
    Regards,
    Mike Yin
    TechNet Community Support

  • Allow desktop interaction within Azure Cloud Service with third-party desktop app (automated via code)

    Hello,
    I am developing a wrapper service as Worker Role which will take request from Service Bus and automate a third-party desktop app to produce an output file and then upload result back to our web server.  The automation is accomplished with the app's
    built-in .Net remoting based API.  This all works on my local development machine.  I am using code as below to start the desktop app.  In Azure:
    If I am not logged on to RDP and run the app as SYSTEM (or whatever the default WorkerRole account is), it waits forever for the MainWindowHandle.
    if I start the app manually in the RDP and try to get a reference to the running process (again as SYSTEM), I get Access Denied from WaitForInputIdle.
    if I start the app from code as the RDP user (ProcessStartInfo assign user/pass), I get InvalidOperationException - the app might not have a graphical interface from the WaitForInputIdle.
    Could anyone suggest the proper strategy for starting processes in a Worker Role that must create a window?
    For reference, I only care about the window to the extent that I need to make sure it's there.  All other interaction with the process is via the .Net Remoting API.
    private void GetOrStartThirdPartApp()
    _process = Process.GetProcessesByName("ThirdPartApp").FirstOrDefault();
    if (_process == null)
    _process = new Process();
    _process.StartInfo.Arguments = string.Format(@"-I ""{0}""", config.GetSetting("RolePath"));
    _process.StartInfo.WorkingDirectory = config.GetSetting("WorkingFolder");
    _process.StartInfo.FileName = config.GetSetting("ExecutablePath");
    _process.StartInfo.LoadUserProfile = true;
    _process.StartInfo.UseShellExecute = false;
    if (config.GetSettingAsBoolean("StartThirdPartAppWithRunAs", false))
    _process.StartInfo.UserName = "user";
    var password = new SecureString();
    foreach (var c in "thepassword".ToCharArray())
    password.AppendChar(c);
    _process.StartInfo.Password = password;
    _process.Start();
    while (_process.MainWindowHandle == IntPtr.Zero) Thread.Sleep(50);
    _process.WaitForInputIdle();
    _process.Exited += _process_Exited;

    I'd keep the app with the UI and the queue reader in the same process and account - not a worker role.  On start up you launch the desktop application and the queue reader in the same account, one after another.
    From what I've experienced, two users don't have the same
    Window Stations, so you can't pass a window handle in a different logged-in account across that boundary.  Read the Window Station documentation - you may find something that helps.
    You could use other techniques like sockets to communicate cross-process and cross-window station, too.
    Darin R.

  • Unable to start process via GP API in which group is exposed as input

    Hi,
         I am not been able to start process using GP API for the particular senario.
    I created Process at design time.
    In this process I mapped parameters to a group and exposed this group, So that input is required for initiating the process.
    Now I want to initiate this process via GP API.
    I got sucess in starting processes which takes parameters as inputs or which does not need any inputs, but i was not been able to start process where group is exposed.
    it's giving me GP INVOCATION Exception.
    Please Help ASAP
    Regards,
    Pratik

    Pratik,
    I try to simulate with scenario described by you and I got success with my test.
    Follow my java code:
         public boolean initiateProcessSDN () {
              boolean ret = false;
              try {
                   IUser user = UMFactory.getUserFactory().getUserByLogonID("uces");
                   IGPUserContext userContext = GPContextFactory.getContextManager().createUserContext(user);
                   IGPProcess processTemplate
                        = GPProcessFactory.getDesigntimeManager().getActiveTemplate(
                                  "8DC0B411957D11DDB7910017F2EBE4A5", userContext);
                   IGPRuntimeManager rtm = GPProcessFactory.getRuntimeManager();
                   IGPStructure params     = GPStructureFactory.getStructure(processTemplate.getInputParameters());
                   params.setAttributeValue("NameGroup", "Pedro");
                   params.setAttributeValue("AddressGroup", "XPTO");
                   IGPProcessRoleInstanceList roles = rtm.createProcessRoleInstanceList();
                   IGPProcessInstance prInstance
                        = rtm.startProcess(     processTemplate,
                                            "Test 1",
                                            "Test 2",
                                            user,
                                            roles,
                                            params,
                                            user);
                   ret = true;
                   } catch (Exception ex) {
                        ret = false;
              return ret;
    Print screen about my GP design:
    Callable Object with 4 parameters
    http://img530.imageshack.us/img530/16/sdngpgroup001bt5.jpg
    Action grouping CO parameters into 2 groups
    http://img147.imageshack.us/img147/2006/sdngpgroup002xy3.jpg
    Process reflecting these groups as input parameters
    http://img147.imageshack.us/img147/9184/sdngpgroup003pp0.jpg
    Process started by java code above
    http://img530.imageshack.us/img530/8833/sdngpgroup004no4.jpg
    Best Regards,
    Pedro Nunes

  • Create new process/workflow for tabbrowsing

    Hi all!
    I initially posted the following in the Safari area on this forum:
    "Hi all!
    In my never-ending quest to customize Safari to my liking (ie, make it feel like my favorite and default browser, Opera), I have a two-fold question for you guys:
    1) How hard is it to create a plug-in for Safari that would force it to systematically open bookmarks from my Bookmarks Bar in a new tab in the current window? What's the step-by-step process to write such a program? Which tools are required?
    2) Do you think it's possible to obtain the same result (opening bookmarks in a new tab) via AppleScript? If yes, how (again, step by step, since I'm not fluent in AppleScript yet...)?
    Alright, the ball is in your court, now...
    MBP Core Duo 1,83GHz 15" Mac OS X (10.4.10) Me love you cookies lo-oong time!"
    I then received the following two answers:
    "DarkStar
    Posts: 98
    Registered: Nov 25, 2004
    Re: Plug-in or AppleScript: how hard is it?
    Posted: Mar 6, 2009 2:23 PM in response to: Didier Caizergues Reply Email
    Hello Didier, You can open Automator click-on custom then type in search-field Safari choose Display Webpages>drag into window. Form there you add all the sites you need to open on launching
    Safari (that's ruff) but you can always refine it.
    More helpful is this automator action already done to do exactly what you want http://raoli.com/projects/automator-actions/ you'll find a download zip.
    iMac G5 (iSight) Mac OS X (10.5.6) 2.1Ghz 1.5GB"
    And:
    "kurmbox
    Posts: 9
    Registered: Nov 12, 2006
    Re: Plug-in or AppleScript: how hard is it?
    Posted: Mar 6, 2009 5:13 PM in response to: DarkStar Reply Email
    I would simply make the bookmarks in your bookmark bar a javascript command that attempts to open the desired bookmark in a new window. Then set safari to open new windows in new tabs (somewhere in the preferences). This will accomplish what you want without having to write a custom plug-in or use automator.
    Powerbook G4 12" Mac OS X (10.4.8)"
    But I'm stumped here, because I'm completely new to Automator. I know its basic principles, but I can't seem to order the processes in order to make a workflow.
    I'd like Safari to open each of my bookmarks in a new tab, but not all at once. For example, when I'm staring at my homepage in Safari and clicking on one of my bookmarks, I'd like Safari to open the latter in a new tab next to my homepage, not overwrite it.
    What to make of the answers to my original post? How to use Automator to suit my purposes? How to include a JavaScript command that will force Safari to open bookmarks and various URLs in a new tab?
    I know, I know, lotsa questions...
    Ideas, anyone?
    PS: needless to say, I also download and saved the .action file recommended by one of the generous contributors. I put said file in the Automator folder I'd created in my Library folder, but I don't know how to put commands in the proper order...

    I want my bookmarks to open in new tabs with a simple click, period... Opera does this natively, why can't Safari?
    I don't see what Opera can do that Safari 3.2.1 can't already do.
    The key is making sure not to keep individual bookmarks in your Bookmarks Bar where each would appear as a separate button. Instead, gather any loose bookmarks and organize them into folders. Future web pages to be bookmarked would be added to one of these subfolders, not to the main Bookmarks Bar.
    To illustrate, my default Safari Bookmarks Bar contains these loose bookmarks: Apple, .Mac, Amazon, eBay and Yahoo, each of which shows up as a separate button on the bar. I can right-click on any one to have it open in a separate tab, of course, but this is time-consuming. If I wanted to open them at once in tabs I would first select Show All Bookmarks from Safari's Bookmarks menu, create a new folder called "Defaults" and drag the aforementioned items items into it. Thereafter, Apple, .Mac, Amazon, etc. wouldn't appear on the Bookmarks Bar as a separate buttons, but would instead be found under a single button called "Defaults."
    I can then simply click on Defaults and choose "Open in Tabs" or, to automate the process even further, right-click on Defaults, select Edit Contents, and check the Auto-Tab check box. The Defaults button, now emblazoned with a tiny square to replace the downward-pointing triangle, requires only a single click to open all bookmarks contained by it in separate tabs (a feature which to me is simpler and more elegant than what Opera has to offer).
    If I wanted to undo the action taken here and move Apple, .Mac, Amazon, etc. back to separate buttons on the Bookmarks Bar, I would simply drag them out of the Defaults folder, and then delete the Defaults folder.
    My 2¢... Good luck.

  • Running a batch process (via thread) in java

    Friends I have gone thru 2 books of java and everywhere it says
    that
    1) the main thread is the one from which other child threads will
    be spawned.
    2)Main thread must be the last thread to finish execution.When the main thread stops,your program terminates.
    Then I am wondering how it works in my case (albeit with little unpredictably !)
    I have this JSP and java application.I throw this JSP and pressing a Submit button I execute a java method in Myclass.java.
    If the book is true then this should not work.But it works.
    Note that I am using Apache server.
    please help.
    Myjsp.jsp
    processSubmission(true)
    class Myclass implements runnable
    public void processSubmission(boolean background) throws Exception
    if (background) {
    Thread oThread = new Thread(this);
    oThread.setDaemon(false);
    oThread.start();
    message = "submission being processed in the background";
    return;
    my huge batch processing java codes.
    public void run()
    try
    processSubmission(false);
    catch(Exception e)

    Friends I have gone thru 2 books of java and
    everywhere it says
    that
    1) the main thread is the one from which other child
    threads will
    be spawned.
    2)Main thread must be the last thread to finish
    execution.When the main thread stops,your program
    terminates.
    No.
    Your program stops when all of the non-daemon threads exit or if the application is explicitly exited - via System.exit().
    Even if you substitute daemon for 'child' in the above it still does not apply.
    From the java docs
    The Java Virtual Machine exits when the only threads running are all daemon threads.
    It doesn't say anything about a 'main' thread. And specifically it is likely that all of your threads will be done before the daemon threads have stopped. So it is much more likely that any 'main' threads will stop first and then the daemon threads stop (I can't see it happening any other way.)
    Even so I would not rely on execution ordering threads for any purpose. If you need execution ordering then you must explicitly provide for it in your code.

  • Job scheduling error : The return value was unknown. The process exit code was -1073741819. The step failed.

    I am working in Sqlserver 2008 R2, SSIS 64 bit version
    I am getting the below  error while scheduling the job in the development server  Database. 
    The return value was unknown.  The process exit code was -1073741819.  The step failed.
    The SSIS front end execution runs fine.
    Have anyone  faced this issue before?

    Hi Venkat,
    If you already changed to 64bit and still doesn't work then create proxy account.. 
    To create a proxy account
    In Object Explorer, expand a server.
    Expand SQL Server Agent.
    Right-click Proxies and select New Proxy.
    On the General page of the New Proxy Account dialog, specify the proxy name, credential name, and
    description for the new proxy. Note that you must create a credential first before you create a proxy if one is not already available. For more information about creating a credential, see How
    to: Create a Credential (SQL Server Management Studio) or CREATE CREDENTIAL (Transact-SQL).
    Check the appropriate subsystem for this proxy.
    On the Principals page, add or remove logins or roles to grant or remove access to the proxy account.
    Thanks

  • Creation of new process in workflow

    Hi All,
    I need to introduce a new functionality in the existing process in seeded workflow. For this reason, I have created a new process and modified the required changes in the workflow process.
    My new process will be identified with the newly provided internal name. Please let me know how will my newly created process can be identifed by workflow to point to the same instead of the old prcess ?
    For this do I need to make any code changes ? Please help me in providing your suggestions at the earliest.
    Thank You,
    Thiyagarajan

    Hi;
    please check below and see its helpful:
    Control - Workflow: Setup Doc ID: 113664.1
    Oracle Workflow Best Practices Release 12 and Release 11i [ID 453137.1]
    Workflow customization
    http://www.vivekasolutions.com/user_docs/WFCustomizationWP.pdf
    download.oracle.com/docs/cd/B19306_01/workflow.102/b15852.pdf
    Regard
    Helios

Maybe you are looking for

  • How can I print a file Attached as a Comment

    Created a .pdf and enabled commenting in Reader. Attached a file as a comment. How can you get Reader to print the attached file without having to open it separately in it's own application. Would like to print the .pdf and have the attached file as

  • Can't delete NAS files "in use"

    We have a Cisco NAS connected to our network of 10 macs. We work live on all projects across the network. Selected files and folders say they are in use when we try to trash them. Can anyone offer ideas? I need the 65GB these files are using!

  • Why the text field frame's line width cannot be adjusted?

    I am now working on a PDF file with some text fields with combo turned on, specifying the number of chars the fields can hold. Their frames' line width is not thick. This is what I want. This is shown in the picture below: But when I try to preview t

  • High Availabilty Tomcat

    To give some trining I'm trainig to setup a cluster in a box using Tomcat. My components: Apache 2.0.54 mod_jk 1.2.10 Tomcat 5.5 I've created two Tomcat instances each listening in different ports (AJP in 8009 & 8010 for each Tomcat). I've also modif

  • ORACLE performance get worse after 24 hours of inactivity

    Yesterday I imported a ORACLE DB, and I executed a query which uses some indexes. The query had only a LEFT JOIN between two tables. 24 hours later I executed the same query and then ORACLE decided not using the indexes and now uses full table access