Automatic process event

Hello guys,.

I develop a time system last month. There are mainly three parts of my system. Application of BB, web service, and MY SQL database. One feature of my application must add a few on the BB application record and then send the record to the database via the web service using HTTPConnection. But during the presentation of the case, there could be failed to connect to internet.

So I want to develop a system that scored the annals which are omitted to submit and each time that the internet will be available, it will automatically submit the registration. Users need not to run the application, process will work behind the visible.

How can I do? Please help me...

Hi and welcome to the forums.

That's pretty standard treatment is not so trivial.  And there are alternative methods of implementation and there are many messages from the forum about various aspects of this.  I suggest that you proceed in follows and the search on the forum when you hit problems in a specific area.

In any case, the simplest implementation is:

(a) divide your application into two parts: a part of the background and the foreground part. Use another entry (search for KB article) so that the foreground part is launched with an icon and the background separately.  The part of the background details are given later.

(b) mark your app to autostart and start your background part.  This will then start you demand when the device turns on (and when the installation of the application).  You should be careful at the time of commissioning, note this article:

http://supportforums.BlackBerry.com/T5/Java-development/write-safe-initialization-code/Ta-p/444795

(c) article removes the listener of system.  Do not.  It lets you stop the treatment on powerDown in the background and run it on powerUp - this way your background processing will survive a user who puts there device pending (e.g. during the night).

It is essentially that, but as noted, there are complications.  Little else have them hot then when you get a little confused, please search here.

Now the little background.

In fact, it is not specific BlackBerry.  The standard treatment is quite simple: the entries must be sent are placed in a queue (say a vector) there are some which background processing is awake (prevention/wait), and this treatment is trying to send the data to the queue.  None of this is BlackBerry specific.

The only specific part BlackBerry is the queue, I recommend to this queue in PersistentStore, so that it will survive a power down.

It is not enough for you to start coding, but I hope it is enough for you to search and find other sources that will provide you with more details on more specific issues.

Good luck.

Tags: BlackBerry Developers

Similar Questions

  • How to stop the logic to automatically add events midi Volume/Pan

    Hello

    How can I prevent the Logic Pro X automatically add the volume/pan events whenever I cut a clip into two?

    I have a volume/pan at the beginning of each track event and sometimes I want to just insert new midi events existing in-between, so I cut the clip, the second part of move to the right and the record or paste my new events.

    The problem is that LPX is insert automatically the events of volume/pan at the beginning of the clip cut and then, when I join these clips, I have many events unwanted volume/pan

    How can I stop doing that?

    Version LPX is 10.2.1

    Thank you!

    Just figured it out myself

    "Go to Midi - project settings - file and uncheck the box 'Change of order 7/10...' under the ' send after loading project" section.

  • Flashing that says automatic processing.

    There is a box in the middle of the screen that flashes.  It says automatic processing.  I don't know what it is or how to make it go away.  Help, please!

    Michelle

    Hey everybody,

    Please take a look at troubleshooting provided in the link below:
    How to stop automatic processing on monitor

    Hope that helps.

  • Message of conditional for line automatic processing (DML)

    Request Express 3.2.1.00.11

    I have an Edit Page process (automatic processing line (DML)) that was created using the APEX Wizard, part of an INSERT, UPDATE DELETE form.

    Is it possible to set a condition in the dialog box Messages that conditionally returns a person in charge of message on the operation (Insert, Update, or Delete).

    The returned generic message is 'Action transformed '.

    Concerning

    Ben

    Benton says:

    Request Express 3.2.1.00.11

    I have an Edit Page process (automatic processing line (DML)) that was created using the APEX Wizard, part of an INSERT, UPDATE DELETE form.

    Is it possible to set a condition in the dialog box Messages that conditionally returns a person in charge of message on the operation (Insert, Update, or Delete).

    The returned generic message is 'Action transformed '.

    Messages of the integrated automatic processing (DML) can process line (at least where messages are in English) referring to the integrated REQUEST substitution string:

    Customer &REQUEST.d.

    that, together with DEMAND appropriate values for the buttons that trigger the process (e.g. CREATE, SAVE, and DELETE) displays messages like:

    • The customer is created.
    • Registered customer.
    • Deleted client.
  • Adobe Acrobat Reader DC (15.010.20056) update automatically.  I'd rather have the possibility to download and install.  How to disconnect the automatic process?

    Adobe Acrobat Reader DC (15.010.20056) update automatically.  I'd rather have the possibility to download and install or not.  How to disconnect the automatic process?

    Hi steveg83673202,

    You cannot change the preferences of update for Adobe Acrobat Reader DC. KB doc. for reference Adobe Reader and Acrobat updater settings | DC, XI

    Kind regards

    Nicos

  • Automatic processing of the files in the folder

    Is it possible to use the ODI to automatically process a csv file, immediately it will be deposited in a folder without the user clicking anything?

    Hello

    WaitForData works with mask (IE *.csv). For example

    Expect that the sale of 5 minutes *.dat files every second in the c:\sales_in directory, then copy those files in the C:\sales_ok directory. Not crush.

    OdiFileWait-ACTION = COPY - DIR = c:\sales_in-PATTERN = * .dat - TODIR = c:\sales_ok - FILECOUNT = 0 - TIMEOUT = 350000 - POLLINT = 1000 - CRUSH = no

    I copied the wrong link in the previous thread. The correct is

    http://gerardnico.com/doc/ODI/Webhelp/en/ref_tools/snpsfilewait.html

  • Creating ent via API and post processing event handlers

    I have a number of post-processing-event handlers defined for the creation of the organization. They all work fine and do what they need to do when I create an organization via the web interface. However if I create an organization that uses the Java API, managers of events do not run. They are not supposed to run? I think that IOM should handle all the same applications - everywhere where they are generated.

    Here is my example of API:

    Import Thor.API.Exceptions.tcAPlException;
    Import Thor.API.Operations.tcOrganizationOperationslntf;
    import java.util.Hashtable;
    import java.util.HashMap;
    Import javax.security.auth.login.LoginException;
    Import oracle.iam. platform. OIMClient;

    public class test {}
    Public Shared Sub main (string [] args)
    {
    Hashtable env = new HashtableQ;
    approx. put (0IMc1 I ent. jAvA_NAMING_FACTORY_INITIAL, "weblogic.jndi.WLInitiialContextFactory");
    env.put (mpta OIMC]. JAVA_NAMING_PROVIDER_URL, "t3: / / localhost:14000");
    OIMClient oimclient = new olMClient (env);
    try {}
    oimclient. Login ("xelsysadm", args [O] .tocharArrayO); II the password is the only argument
    } catch (System.Exception e)
    System.out.println ("ERROR: connection exception.") Please check your username / password are correct. ») ;
    }
    tcorganizationOperationsintf orgManager = (tcOrganizationOperationsintf.class) oimclient.getservice;
    < String, String > HashMap hmorgDetails = new HashMap < String, String > ();
    hmOrgDetails.put ('Organizations.organizationName', 'org test');
    hmorgDetails.put ('Organizations.Type', 'Branch')
    Try
    {
    orgManager.createOrganization (hmorgDetails);
    } catch (Exception e) {}
    System.out.println (e. getMessage())
    e.printStackTraceQ;
    }
    return;
    }
    }

    and my definition of post processing:
    <? XML version = 'l.O' encoding = "uTF - 8"? >
    < eventhandlers xmlns = "http://www.oracle.com/schema/oim/platform/kernel."
    xmlns: xsi = "http://www.w3.org/2001/xMLschema-instance".
    xsi: schemaLocation = "http://www.oracle.com/schema/oim/platform/kernel%2dorchestrat-jon."
    -hand] ers. XSD">
    <! - custom preprocess event handlers - >
    < entity-type of the action handler = operation 'Organization' = 'CRΘER. '
    Class =' ' corn.corp.AutoCreateRoles
    name = 'Run in creating org'
    Stadium = "post-processing".
    order = "2000".
    Sync = "TRUE" / >

    Try to use OrganizationManager service class in your java code instead of the tcOrganizationOperationsIntf inheritance. Which should trigger the event handler. Recently, I had a problem where using the EntityManager on user has not triggered the eventhandler but only when using the UserManager triggered it.
    It would be possible only when you are using the legacy API, a new orchestration is not produced, and therefore the event handler is not called.

    -Marie

  • Automatic processing DB

    Guy

    I created a database to study the features of the oracle

    so, I created a database with 12 GB in size just for test, with the idea of simulating a real production database. Here there are tables, views, triggers, procedures, index, etc.

    What I need to know now, is how I can execute stored procedures that I created to consume the data base automatic processes to start. These procedures are already created and they are based in business rules implemented for the type of database application.

    Now, the problem is just how to run this procedure in automatic and updated much way to run without my intervention.

    After that, my plan is just to monitor the activities of database.

    SUGESTIONS?

    just how to run this procedure in automatic and updated much way to run without my intervention.

    You can use dbms_scheduler package using which, you would be able to run scheduled tasks. These jobs can use your procedures as an input and can move forward. See this link for more dbms_scheduler,
    http://download.Oracle.com/docs/CD/B19306_01/server.102/b14231/schedadmin.htm#i1009099

    HTH
    Aman...

  • Is it possible 2 automatic process line processing DML on a single page?

    Dear friends;
    I need to use 2 automatic process line processing DML on a single page? each process working on a clean table (insert/update/delete)
    on other forms of words on a single page 2 table
    but I have invalid identifier error
    concerning
    siyavus

    Published by: sak on October 12, 2010 17:30

    Siyavus,

    Sorry, this is not possible. There is only one form of automatic DML by page. You can have multiple forms per page, but only one of them can use automatic DML.

    Joel

  • Process event causing another event of creating user

    I have a setup of successful automatic provision made of OIM to OID. When I create a user in the IOM, she get supplied with OID immediately.

    I recently added a Post-quadrichromie event handler code to the event to "create a user". PostProccessEvent code generate a custom Unique Id and set it to one of the custom user (named "MicamUniqueId") attributes during the creation of the user through the screen of the IOM. This works as expected and I see the value of the attribute "MicamUniqueId" once the user successfully created.

    However, now I see two events provisioning tab resources.
    (1) one with the status 'configured '.
    (2) other 'Provisioning' status: details report, said "the user already exists."

    The status of 'user already exists' must be the PostProcess event. Looks like the code post-process triggers another event "Create User" instead of "Update User' event.» I guess I'm doing something wrong in the code of PostProcessEventHandler. Here is the code snippet.

    Anyone can understand the error?

    Thank you!
    -Kabi

    --------------------------------------------------------------------------------------------------------------------------------------
    public class GuidGenerationPostProcEventHandler implements
    {oracle.iam.platform.kernel.spi.PostProcessHandler}
    :
    public EventResult run (long processId, long eventId, orchestration of the Orchestration) {}
    HashMap < String, Serializable > params = orchestration.getParameters ();
    String uid = this.getParamaterValue (params, Constants.USERID);
    OimUserManagerOperations usrModifyOperation = new OimUserManagerOperations();
    usrMgrOperation.modifyUserAttr (uid, "Micam Unique Id", getGUIDinString()); see the class UserManagerOperations
    Return (new EventResult()) End Function
    }
    :
    }


    public class UserManagerOperations {}
    :
    ' public void modifyUserAttr (String uid, String, attrName, attrValue String) {}
    the oracle.iam.identity.usermgmt.vo.User user = new User (null);
    user.setAttribute (attrName, attrValue);

    try {}
    usrMgrService.modify (Constants.USERID, uid, user);
    }
    catch (...)
    :
    :
    }
    --------------------------------------------------------------------------------------------------------------------------------------

    Hello
    I faced a similar with API UserManager sometimes question of return, I used entitymanager and it worked.
    You can use the entityManager as follows API

    Bishop EntityManager = Platform.getService (EntityManager.class);
    OrchestrationTarget target = orchestration.getTarget ();
    String entityType = target.getType ();
    String entityId = target.getEntityId ();
    attrs.put ("StatusHidden", "Disabled");
    e = mgr.modifyEntity (entityType, entityId, uploading);

  • iPad is set to optimize the storage of photos from device. App Photoshop Express will edit the reduced size copy stored on the device, or automatically process the iCloud kept a life-size?

    Can someone advise please?  I copy all my photos from SD card in my iPad and the use of the Photoshop Express application to modify.  iPad is set to optimize the storage of photos from device. Edit app Photoshop Express small size kept on the device, copy or automatically will process the iCloud a life-size?

    I guess you'll have to manually lower the file full resolution first. I would ' t think that any application would just go and take it automatically from the Cloud. You may need to check if you have not already.

  • nimxs.exe automatically processes the call VISA::viFindRsrc.

    The process nimxs.exe running in the background automatically call VISA::viFindRsrc whenever the device I tested is connected to my computer. The device is connected as a network card. This process is finding various devices on the network and with up to 15 seconds to complete each time. Meanwhile, it tends to lock the resource, I'm trying to send commands to with Labview and causes the following error.

    VISA: (HEX 0xBFFF000F) specified type of lock cannot be obtained, or specified operation cannot be performed because the resource is already locked.

    This problem started when I updated NI-VISA of 4.1 to 5.1.1. Is there a way to disable this automatic search for network equipment? The only time I want to pick up equipment is when I opened NOR-MAX.

    Hey Ryan,

    Is this a problem for you to have the service disabled? You should not need unless you want to be able to automatically detect the LXI network devices.

    We will continue to investigate the issue and rated fixes for future versions.

  • Handler process events post is not kept up-to-date of the user confidently Recon

    Hi, I have this code for an event handler for post-processing, and I need for a reconciliation of trust.
    I can see all the "System.out.println" works well in the newspaper, but there is no update in the created users.
    I need to update the user manager key, so I get ManagerID and search among employees to be one with the employee number and place it in the field Manager Key.
    This code works very well as a preprocess in EventResult to create users in IOM, but no results for PostProcess in BulkEventResult of a reconciliation of trust.

    Here is the code:

    public BulkEventResult run (long arg0, long arg1, arg2 BulkOrchestration) {}

    System.out.println ("Executing method BulkEventResult");
    HashMap < String, Serializable > [] params = arg2.getBulkParameters ();
    for (int i = 0; i < params.length; i ++) {}
    < String, Serializable > HashMap orchParam = params [i];

    String managerID = getParamaterValue (orchParam, "ManagerID"); Gets the 'Manager' of the user created.

    System.out.println ("Manager ID is:" + managerID);

    If ((managerID! = null)) {}

    < User > list list = findManager (managerID); Records in a list, the key Manager "ManagerID.


    If (! (list.isEmpty ()) |) (liste! = null)) {

    String managerKey = list.get (0) m:System.NET.SocketAddress.ToString (); Converts the item in the list a string.

    managerKey = managerKey.substring (managerKey.indexOf ("=") + 1, managerKey.length () - 1);

    System.out.println ("key management is:" + managerKey);

    Arg2.addParameter (UserManagerConstants.AttributeName.MANAGER_KEY. GetId(), Integer.parseInt (managerKey)); Updates the user manager key.

    }

    }

    }

    System.out.println ("development of method BulkEventResult");

    return new BulkEventResult();

    }

    I'd appreciate any help. Thanks in advance!

    Be awared that will give the UserManager in another orchestration as well

    modification of the user. But in general, it will be

    User user = new User (strUsrKey);

    user.setManagerKey (strMgrKey);

    UserManager usrMgr = Platform.getService (UserManager.class);

    usrMgr.modify (user);

    12:41, community-admin Tuesday, December 9, 2014

  • Essbase Studio - Import Catalog using an automatic process

    Hello

    I want to make the process of importing Essbase Studio more automatic catalog in the customer environment. Instead of having to open the Essbase Studio application whenever I want to deploy a new version of the catalog (full or partial), is it possible to export/import the catalog using a unix shell script or the command BACK?

    Thanks in advance

    Victor

    I think that the options will be limited to automate migration until 11.1.2.3 where LCM is supported by the Studio.

    See you soon

    John

    http://John-Goodwin.blogspot.com/

  • Error in the post process event handler

    We should write a process post event handler that updates the field Manager. So, I used the following code to update the Manager field when a user is created:

    Code:

    public EventResult run (long processId, long eventId,
    Orchestration of the orchestration) {}
    System.out.println ("Test for the event handler");
    Try
    {
    Take string = getUserKey (processId, orchestration);
    System.out.println ("USERKEY1" + take);
    UserManager userMgmt = Platform.getService (UserManager.class);
    System.out.println ("USERMANAGEMENT" + userMgmt);
    System.out.println (userMgmt.modify (User (take))) of new;
    userMgmt.modify ("usr_mgr_key", "28", new User (take));
    System.out.println ("USERKEY2" + take);


    } catch (ValidationFailedException e) {}
    System.out.println ("Exception1");
    } catch (AccessDeniedException e) {}
    System.out.println ("Exception2") ;} {} catch (UserModifyException e)
    System.out.println ("Exception3") ;} {} catch (NoSuchUserException e)
    System.out.println ("Exception4") ;} {} catch (SearchKeyNotUniqueException e)
    }
    return new EventResult();
    }


    private String getUserKey (long processID, orchestration of the Orchestration) {}
    Take string;
    String entityType = orchestration.getTarget () .getType ();
    Result of the EventResult;
    result = new EventResult();
    System.out.println ("Feature Type" + entityType);
    System.out.println ("PID" + processID);

    If (! orchestration.getOperation () .equals ("CREATE")) {}
    Take = orchestration.getTarget () .getEntityId ();
    System.out.println ("UserKEY0" + take);
    } else {}
    OrchestrationEngine orchEngine = (OrchestrationEngine.class) Platform.getService;
    Take = (String) orchEngine.getActionResult (processID);
    System.out.println ("Take-1" + take);
    }
    Return take;

    }

    It compiles very well, and when we try to create a user, the user is created successfully. But the expected behaviours of the upadting field Manager with the key to the user '28' are not the case. My highest approach: is it good or is there another method that will make it work?

    The output message I see is:

    Test for the event handler
    TypeUser entity
    Process ID140343
    Take-1613
    USERKEY1613
    USERMANAGEMENToracle.iam.identity.usermgmt.api.UserManagerDelegate@75ecf9ed
    < 27 February 2012 10:56:41 hours GMT > < WARNING > < oracle.iam.callbacks.common > < ARA-2030146 > < [CALLBACKMSG] are present for this eventhandler async to policies? : false >
    oracle.iam.identity.usermgmt.vo.UserManagerResult@14da2ada
    < 27 February 2012 10:56:44 hours GMT > < error > < oracle.iam.identity.usermgmt.impl > < ARA-3051212 > < an error occurred when searching for users -: [usr_mgr_key]. >
    Licence4


    Thank you
    Krish

    I hope that the incorrect coding.
    Use this code.

    UserManager userMgmt = oimClient.getService (UserManager.class);
    Attribute to change
    HashMap atrrMap = new HashMap ();
    atrrMap.put ("usr_manager_key", Long.valueOf("1")); the user will be updated with key Manager 1 (xelsysadm) make sure usr_key 1 (Manager) are in IOM.
              
    get the user you want to change
    User user = userMgmt.getDetails ("usr_key", "41", null);
    User = new User (String.valueOf (user.getId ()), atrrMap);
    Result UserManagerResult = userMgmt.modify ("usr_key", String.valueOf("41"), user);
    UserManagerResult str = userMgmt.modify ("usr_mgr_key", "111", new User ("41"));
    System.out.println ("UserUpdate.Process ()" + result.getStatus ());

    Also do not use the UserManager class, he can go for a loop.
    Use
    EntityManager entityManager = Platform.getService (EntityManager.class);
    entityManager.modifyEntity (orchestrationTarget.getType (), take, mapAttrs);

    I assume you want to use the manager associated with use of the user cases.

    Thank you
    Kuldeep

Maybe you are looking for

  • Unwanted name changes and privilege

    I use OS X 11.5 in a MAC PRO early 2008 with several internal hard drives. Recently, I tried to put a file of my office in my hard dive record to start and couldn't do it up to what I had provided my admin password.  I had never run in before. I went

  • Satellite L310-S408 - cannot connect the cable HDMI port

    Hi all... I bought this laptop about 1 week ago.I check that the HDMI port. but when I look closely, I realized that I can not use this port.because the HDMI port is closed by this body of the laptop. Can anyone give me the solution on this case? Tha

  • HP Pavilion 15 (I think? (Idk): "not found boot device."

    When I start my laptop it says:"Boot device not found.Please install an operating system on your hard drive. »My hard drive constantly ejects and when I put it back in it cannot read it all of a sudden. I am Orient correctly. I tried everything, I do

  • Application (OR-Daq LIC) DLL loading error

    Hi all I have an application developed using port, read, write & config of zadvd.lib (lvdaq.dll) which works fine in my XPmachine. In the new machine, I installed labview 7.1 and copy of the application and when the application is loaded, it displays

  • DVD RW POGON

    DVD RW POGON