Trigger a Begin event running Global Automatic activity

Hi
I have a situation explained as follows:
The BPM Process flow would be triggered when a message comes into a JMS Queue.
I have configured the JMS Messaging Service as an external resource and used a Global Automatic Activity as an Automatic JMS Listener to listen on that queue.
Once the message is received on the queue, I want my actual process flow to be instantiated and activities following the begin activity to be executed.
In the Studio Reference document, it is mentioned that
You can trigger a Begin event running Global Automatic activity.
Can someone tell me the steps to trigger the Begin Event from Global Automatic Activity and create the process instance.
Thanks

You have to call this method
ProcessInstance.create(arguments : args, argumentsSetName : "BeginIn")
Args is Any[String] where you put you input arguments that you have in your begin activity and BeginIn is the set of arguments you have in the begin activity.
HTH

Similar Messages

  • Create Process via Global Automatic activity

    Hi!
    I´m trying to automatize some process, that can auto-execute one time at a day. For this, i'm thinking of use the global automatic activity, and I 've scheduled to execute (for testing) every minute. But this never happends
    If the global has no bp.Method inside, obviusly, nothing happends. Hence, when i wrote this code:
    logMessage "Se ha iniciado el proceso de consulta de calendario a las:" +'now'
         using severity = INFO
    ProcessInstance.create(processId : "/ConsultarCalendarioCompras", arguments : null, argumentsSetName : "")
    how could i solve this?
    Thanks

    Hi,
    Are you seeing your log INFO statement in the log file every minute? Assuming you are, I think all you're missing is a valid value for the third parameter. Try changing your logic to this:
    ProcessInstance.create(processId : "/ConsultarCalendarioCompras",
         arguments : null, argumentsSetName : "BeginIn")
    . . .Once you get this working, take a look at this thread for information on how to pass in argument variables into the work item instance using the second parameter: Re: How to create Instace of another process from running process.
    Hope this helps,
    Dan

  • Transfer value from global automatic activity in Aqualogic BPM Suite

    Hi, I am new to Aqualogic BMP suite and stuck with the following problem :
    In aqualogic bpm suite, if we are setting some values to some variables in a global automatic activity in a process how to get those values back in some other activities (say an Interactive activity) in the same process or how to assign the values to some instance variables in the Begin activity ??
    We have a scenario where we are creating some process instances from the Global Automatic activity using the following :
    args["name"] = abc
    create ProcessInstance using parameters = args
    Now how to get the value "abc" and assign this value to an instance variable in the Begin activity(/access the value "abc" in an interactive activity)within the same process.
    Thanks,
    Suman.

    Hi,
    Let's say you have an Argument Set defined in your Begin activity called BeginIn. The arguments in this Argument Set can be "a", "b" and "c" of type String, Int and boolean accordingly.
    If you want to use the ProcessInstance.create method, then you would need to have a PBL script like this one:
    args[] = [ "a" : "SomeStringLiteral", "b" : 1234, "c" : true ];
    ProcessInstance.create(processId : "/MyProcess", arguments : args, argumentsSetName : "BeginIn");
    HTH,
    eduardoc.

  • Global Automatic Activity - Process to Process

    Hi,
    How can we invoke another process from one process using a Global automatic activity..Is PAPI the only way? How can we use PAPI code inside of a Global Automatic Activity to call another process?v Any examples?
    Edited by: user647659 on Oct 27, 2008 11:02 PM
    Edited by: user647659 on Oct 28, 2008 11:49 AM

    I am not sure what you saying..Did u mean Global Creation ? But that would have a user to invoke the process..I want to invoke it automatically...I got a part of the answer...But it takes all instances..and creates multiple instances..I want to isolate the instances previously been transferred..What I am doing is ..Using a Global Automatic to invoke the other process.Writing a PAPI code to call the other process from this process...and Polling By Interval every 1m..
    Here is a code:-
    ProcessService ps;
    ps.connectTo(url : Fuego.Server.directoryURL, user : (String)BusinessParameter.getValue(name : "USER_NAME"), password : (String)BusinessParameter.getValue(name : "PASSWORD"));
    logMessage("Process Service connected--->" );
    businessProcess = ps.getProcess(process : "StartProcess");
    InstanceFilter instanceFilter;
    instanceFilter.create(processService : ps);
    SearchScope searchScope = new SearchScope(ParticipantScope.ALL,StatusScope.INPROCESS_AND_COMPLETED);
    instanceFilter.searchScope = searchScope;
    result2 = businessProcess.getInstancesByFilter(filter : instanceFilter);
    logMessage("Length ==>" +length(result2));
    length = length(result2);
    logMessage("Length Transferred==>" +length);
    test["name"] = "testing";
    if(length > 0)
         for(int i=0; i < length; i++)
              ProcessInstance.create(arguments : test, argumentsSetName : "BeginIn");
    else
         logMessage("length is-->" + length);
    length = 0;
    Any suggestions on how to isolate the previous obtained instances would be appreciated..
    Thanks,

  • Process creation using Global Automatic Activity - OBPM 10g

    Hi,  I would like create the process instance for my application on every 2nd business day of a month. I also have a calendar defined for checking business day.  But I am unable to figure out to how use that calendar to determine second business day of any month. Global Automatic type is set to Automatic schedule and monthy option was selected. But I believe this would trigger the process on every second day of the month, without considering the fact whether its  business day or not. There is Runs on Holidays checkbox, but not sure what it really does. If it checks for holidays then which calendar does it refers to. Hence, please let me know how can i specify a calendar or any alternate solution to trigger process creation. Thanks, Namit
    n

    I am not sure what you saying..Did u mean Global Creation ? But that would have a user to invoke the process..I want to invoke it automatically...I got a part of the answer...But it takes all instances..and creates multiple instances..I want to isolate the instances previously been transferred..What I am doing is ..Using a Global Automatic to invoke the other process.Writing a PAPI code to call the other process from this process...and Polling By Interval every 1m..
    Here is a code:-
    ProcessService ps;
    ps.connectTo(url : Fuego.Server.directoryURL, user : (String)BusinessParameter.getValue(name : "USER_NAME"), password : (String)BusinessParameter.getValue(name : "PASSWORD"));
    logMessage("Process Service connected--->" );
    businessProcess = ps.getProcess(process : "StartProcess");
    InstanceFilter instanceFilter;
    instanceFilter.create(processService : ps);
    SearchScope searchScope = new SearchScope(ParticipantScope.ALL,StatusScope.INPROCESS_AND_COMPLETED);
    instanceFilter.searchScope = searchScope;
    result2 = businessProcess.getInstancesByFilter(filter : instanceFilter);
    logMessage("Length ==>" +length(result2));
    length = length(result2);
    logMessage("Length Transferred==>" +length);
    test["name"] = "testing";
    if(length > 0)
         for(int i=0; i < length; i++)
              ProcessInstance.create(arguments : test, argumentsSetName : "BeginIn");
    else
         logMessage("length is-->" + length);
    length = 0;
    Any suggestions on how to isolate the previous obtained instances would be appreciated..
    Thanks,

  • Exception when begin process via Global Automatic JMS task

    I have a process that works when I invoke it via a global creation task. However, when I try to invoke it automatically via a global automatic task listening to a JMS queue, I get the following exceptions and the instance fails.
    An exception occurred while executing a transaction. Details:
    java.lang.ClassNotFoundException: xobject.CandidateManagement.CandidateList$CandidatesGroup
    java.lang.ClassNotFoundException: java.lang.ClassNotFoundException: xobject.CandidateManagement.CandidateList$CandidatesGroup
         at fuego.lang.JavaClass.loadClass(JavaClass.java:945)
         at fuego.lang.JavaClass.loadByJavaType(JavaClass.java:902)
         at fuego.lang.JavaClass.loadByJavaType(JavaClass.java:874)
         at fuego.lang.JavaClass.loadByJavaType(JavaClass.java:868)
         at fuego.lang.JavaClass.forName(JavaClass.java:271)
         at xobject.CandidateManagement.CandidateList.<init>(CandidateList.xcdl)
         at JMSPrototype3.ChooseCandidateCustomer.Default_1_0.Instance.<init>(Instance.xcdl)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
         at java.lang.reflect.Constructor.newInstance(Unknown Source)
         at java.lang.Class.newInstance0(Unknown Source)
         at java.lang.Class.newInstance(Unknown Source)
         at fuego.server.execution.GlobalAutomaticJMSListeningHelper.executeJmsListener(GlobalAutomaticJMSListeningHelper.java:86)
         at fuego.server.AbstractProcessBean$42.execute(AbstractProcessBean.java:2771)
         at fuego.server.execution.DefaultEngineExecution$AtomicExecutionTA.runTransaction(DefaultEngineExecution.java:302)
         at fuego.transaction.TransactionAction.startBaseTransaction(TransactionAction.java:470)
         at fuego.transaction.TransactionAction.startTransaction(TransactionAction.java:551)
         at fuego.transaction.TransactionAction.start(TransactionAction.java:212)
         at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:123)
         at fuego.server.execution.EngineExecution.executeImmediate(EngineExecution.java:66)
         at fuego.server.AbstractProcessBean.runGlobalJmsActivity(AbstractProcessBean.java:2777)
         at fuego.server.execution.GlobalJMSExecutor$1.run(GlobalJMSExecutor.java:113)
         at fuego.component.Message.process(Message.java:578)
         at fuego.component.ExecutionThread.processMessage(ExecutionThread.java:772)
         at fuego.component.ExecutionThread.processBatch(ExecutionThread.java:747)
         at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:143)
         at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:135)
         at fuego.fengine.FEngineProcessBean.processBatch(FEngineProcessBean.java:248)
         at fuego.component.ExecutionThread.work(ExecutionThread.java:831)
         at fuego.component.ExecutionThread.run(ExecutionThread.java:409)
    Process execution engine execution error.
    Caused by: java.lang.ClassNotFoundException: xobject.CandidateManagement.CandidateList$CandidatesGroup
    fuego.papi.impl.EngineExecutionException: Process execution engine execution error.
         at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:139)
         at fuego.server.execution.EngineExecution.executeImmediate(EngineExecution.java:66)
         at fuego.server.AbstractProcessBean.runGlobalJmsActivity(AbstractProcessBean.java:2777)
         at fuego.server.execution.GlobalJMSExecutor$1.run(GlobalJMSExecutor.java:113)
         at fuego.component.Message.process(Message.java:578)
         at fuego.component.ExecutionThread.processMessage(ExecutionThread.java:772)
         at fuego.component.ExecutionThread.processBatch(ExecutionThread.java:747)
         at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:143)
         at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:135)
         at fuego.fengine.FEngineProcessBean.processBatch(FEngineProcessBean.java:248)
         at fuego.component.ExecutionThread.work(ExecutionThread.java:831)
         at fuego.component.ExecutionThread.run(ExecutionThread.java:409)
    Caused by: java.lang.ClassNotFoundException: java.lang.ClassNotFoundException: xobject.CandidateManagement.CandidateList$CandidatesGroup
         at fuego.lang.JavaClass.loadClass(JavaClass.java:945)
         at fuego.lang.JavaClass.loadByJavaType(JavaClass.java:902)
         at fuego.lang.JavaClass.loadByJavaType(JavaClass.java:874)
         at fuego.lang.JavaClass.loadByJavaType(JavaClass.java:868)
         at fuego.lang.JavaClass.forName(JavaClass.java:271)
         at xobject.CandidateManagement.CandidateList.<init>(CandidateList.xcdl)
         at JMSPrototype3.ChooseCandidateCustomer.Default_1_0.Instance.<init>(Instance.xcdl)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
         at java.lang.reflect.Constructor.newInstance(Unknown Source)
         at java.lang.Class.newInstance0(Unknown Source)
         at java.lang.Class.newInstance(Unknown Source)
         at fuego.server.execution.GlobalAutomaticJMSListeningHelper.executeJmsListener(GlobalAutomaticJMSListeningHelper.java:86)
         at fuego.server.AbstractProcessBean$42.execute(AbstractProcessBean.java:2771)
         at fuego.server.execution.DefaultEngineExecution$AtomicExecutionTA.runTransaction(DefaultEngineExecution.java:302)
         at fuego.transaction.TransactionAction.startBaseTransaction(TransactionAction.java:470)
         at fuego.transaction.TransactionAction.startTransaction(TransactionAction.java:551)
         at fuego.transaction.TransactionAction.start(TransactionAction.java:212)
         at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:123)
         ... 11 more

    Hi,
    Sure this is just my confusion, but if I'm reading this correctly, you're trying to use an instance variable in a Global Automatic.
    If this is the case, I know this sounds odd, but you don't have access to instance variables inside a Global Automatic. You can create an instance inside the logic of one of these activities if you call the Fuego.Lib.ProcessInstance method "createInstance". For this method you'll notice that one of the parameters it expects is a Any[String]. You'll need to populate this hash table to set instance variable in the instance you're creating.
    Hth,
    Dan

  • Global automatic activity's HTTPS listener

    Hi all,
    I have a client application (POS point of sale) that needs to invoke a process. The POS system sends its messages in a specific XML format over HTTPS protocol and I can't play with this part. I'm trying to develop a custom event listener but the provided sample is not enough.
    Bea help is appreciated
    Thanks guys

    You have to call this method
    ProcessInstance.create(arguments : args, argumentsSetName : "BeginIn")
    Args is Any[String] where you put you input arguments that you have in your begin activity and BeginIn is the set of arguments you have in the begin activity.
    HTH

  • Webservice vs JMS in Global Automatic

    Hi all,
    My client wants to automatically initiate a process after receiving some information from a web service. I have to use a Global Automatic activity to do so. I understand that the Global Automatic activity has an option to listen to an automatic JMS message and trigger/start/initiate the process..
    But the global automatic activity has no option to trigger/start/initiate the process after receiving some information from a web service. Can this be done irrespective of whether the Global Automatic activity has the option or not? Or do I have to only use JMS message to trigger the process?
    Edited by: user647659 on Aug 7, 2009 7:29 AM

    But the global automatic activity has no option to trigger/start/initiate the process after receiving some information from a web service. Can this be done irrespective of whether the Global Automatic activity has the option or not? Or do I have to only use JMS message to trigger the process?To see how to create an instance from a Global Automatic (or any activity) using logic go to How to create Instace of another process from running process.
    Dan

  • Polling or JMS Message in Global Automatic

    Hi,
    I am currently working on a process which uses a Global Automatic activity to invoke a process instance. The process instance is invoked when the process receives some ticket information ( ticket id, type of ticket, customer name etc.) from an external application. This information is passed to the process using a web-service.
    Now, I am confused whether to use JMS message or Polling by Interval inside of the Global Automatic acitivity to receive the message with the ticket information. Could anyone please suggest..
    Also does anybody have an example of invoking a process instance after receiving a JMS message...?

    HI!!!
    In this URL of the Glorius bea.edocs.com, there is an example about working with JMS
    http://egeneration.beasys.com/albsi/docs55/index.html

  • PAPI - Run Global Activity

    Hi people,
    I have one simple process in my BPM application with a "global creation" activity and im trying to call this activity with papi, but without success.
    When i call this activty, i have this error:
    EJB Exception: ; nested exception is:
    com.bea.control.ServiceControlException: soapenv:Server.userExceptionjava.lang.RuntimeException: Activity '/Principal#Default-1.0/gc' task 'null' could not execute successfully.renault.ideais.local
    caused by: : com.bea.control.ServiceControlException: soapenv:Server.userExceptionjava.lang.RuntimeException: Activity '/Principal#Default-1.0/gc' task 'null' could not execute successfully.renault.ideais.local
    java.rmi.RemoteException: EJB Exception: ; nested exception is:
    com.bea.control.ServiceControlException: soapenv:Server.userExceptionjava.lang.RuntimeException: Activity '/Principal#Default-1.0/gc' task 'null' could not execute successfully.renault.ideais.local
    at weblogic.ejb20.internal.EJBRuntimeUtils.throwRemoteException(EJBRuntimeUtils.java:102)
    at weblogic.ejb20.internal.BaseEJBHome.handleSystemException(BaseEJBHome.java:307)
    at weblogic.ejb20.internal.BaseEJBObject.postInvoke(BaseEJBObject.java:284)
    at weblogic.ejb20.internal.StatelessEJBObject.postInvoke(StatelessEJBObject.java:168)
    at com.bea.wlw.runtime.core.bean.SyncDispatcher_k1mrl8_EOImpl.invoke(SyncDispatcher_k1mrl8_EOImpl.java:56)
    at com.bea.wlw.runtime.core.dispatcher.Dispatcher.remoteDispatch(Dispatcher.java:161)
    at com.bea.wlw.runtime.core.dispatcher.ServiceHandleImpl.invoke(ServiceHandleImpl.java:436)
    at com.bea.wlw.runtime.core.dispatcher.WlwProxyImpl._invoke(WlwProxyImpl.java:326)
    at com.bea.wlw.runtime.core.dispatcher.WlwProxyImpl.invoke(WlwProxyImpl.java:315)
    at $Proxy17.runGlobalActivity(Unknown Source)My code is very simple:
    //user
    org.xmlsoap.schemas.soap.encoding.String user = org.xmlsoap.schemas.soap.encoding.String.Factory.newInstance();
    user.set("eu2");
    //pass
    org.xmlsoap.schemas.soap.encoding.String pass = org.xmlsoap.schemas.soap.encoding.String.Factory.newInstance();
    pass.set("eu2");
    //session
    org.xmlsoap.schemas.soap.encoding.String session = wsLocalControl.createSession(user, pass, true);
    // activity
    org.xmlsoap.schemas.soap.encoding.String activity = org.xmlsoap.schemas.soap.encoding.String.Factory.newInstance();
    activity.set("/Principal#Default-1.0/gc");    
    // parameters      
    br.com.ideais.ws.ProcessServiceLocalControl.KeyValuePair[] argsGlobal = new KeyValuePair[1];
    argsGlobal[0] = new KeyValuePair();
    org.xmlsoap.schemas.soap.encoding.String key   = org.xmlsoap.schemas.soap.encoding.String.Factory.newInstance();
    key.set("BeginIn");
    org.xmlsoap.schemas.soap.encoding.String value = org.xmlsoap.schemas.soap.encoding.String.Factory.newInstance();
    value.set("");
    argsGlobal[0].key   = key;
    argsGlobal[0].value = value;
    // call the global method      
    br.com.ideais.ws.ProcessServiceLocalControl.GlobalExecutionResult result =  wsLocalControl.runGlobalActivity(session, activity, argsGlobal);Anyone knows the problem?

    It is just a simple code to run a global activity. The global activity is creating instances.
    The issue is: The instances get created by running the global activity from PAPI, but this exception is thrown.
    I am using Oracle 10G and weblogic 9.2
    I have defined 2 JMS connector.
    Also i have defined 2 JDBC Data source and I have not used Transaction for one of the database source.
    Also I am using the thin driver and not the XA driver.
    All this has been configured by following the document:
    http://edocs.bea.com/albsi/docs57/adminguide/index.html
    Regards
    Right Chord

  • Configure how long a automatic activity  can run before timeout

    I have a long running job in this step. Can I configure how long that automatic activity can run before it will time out. How do I configure this when running in the BPM Studio and when deploy the apps to the server?
    Alternatively, I was try to use a SecureShell to run a unix job with nohup but somehow it doesn't execute properly and the shell would exit out but the script would not run. When I run the same nohup command line in the external host, it does run properly. Is there any special way to call nohup through SecureShell.
    Thanks,
    Wing

    You can define the timeout of the BP-Methods that is actually the value that should be used for the method in your automatic activities. This is configured into the Engine preferences and it's the Maximum BP-Methods+ Timeout parameter, both for the studio and the enterprise.
    Remember to handle the timeout exception when using this parameter. If not correctly handled, your process will abort.
    HTH
    Giuliano

  • A few process instances in automatic activity  simultaneously

    Hi
    I am creating and initiating new process instance using Global Creation activity. I have put screenflow in Global Creation. An instance after completing the screenflow in Global Creation activity goes to BeginIn of the process. When I test it many times I get only  from time to time warning:
    Instance '/BackgroundUpdate#Default-1.0/157/0@xxx' is not in activity '/BackgroundUpdate#Default-1.0/doUpdate'.
    Details: Instance is in activity '/BackgroundUpdate#Default-1.0/WaitToProcessNextPackage' and has status 'RUNNING (1)'.
    "doUpdate" and "WaitToProcessNextPackage" are activities (automatic components) placed after Begin in the process ("doUpdate" is subsequent for BeginIn and "WaitToProcessNextPackage" is subsequent to "doUpdate" activity). When I get this warning no logic is executed for the process instance in "doUpdate" activity.
    How to solve it? Only one process instance created with Global Creation activity can be in one automatic activity? If there two process instances simultaneously in automatic activity, then one them won't be processed?
    Thank you in advance
    Regards
    Peter
    Edited by: Piotr85 on Apr 21, 2010 6:03 AM

    what does they means by service thing here,,,,and how do we specify it? or use it?
    Any application running in Oracle RAC clusterware is considered as a service. What is a service in the windows,its kinda same. If its a part of RAC and an application and running,its service.
    Read from here about services,
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/mgmt_db.htm#sthref2266
    If you don't know RAC yet, better is to leave it.Its the core of RAC if you ask me.
    does resource_consumer_grp and Service name parameter in job class definition are mutual exclusive?or not
    Did you check in the docs for the same?
    HTH
    Aman....

  • Global create activity with screenflow and constructor

    Hi
    Question 1) Is it possible to get data from database (Oracle) in constructor
    Execute Screen flow in a row (One fer other) if yes how and if
    not how can we do that?
    Question 2) Explain how data can be displayed in JSP with BPM Object
    Please give simple example.
    Thanks in advance

    Sorry, I'm not following what you're asking. Screenflows do not have constructors. Is it possible that you mean an instance variable BPM Object's constructor? If this is the case, I'd suggest you instead keep the BPM Object's constructor very lean.
    You can run SQL from any Automatic task inside a Screenflow, any Automatic activity inside a process or BPM Object's methods that have their "Server Side Method" property set to "Yes". BPM Object constructors have their "Server Side Method" property set to "No" and cannot be changed. While you could invoke another method from the constructor that is server side, I would not recommend doing it. Almost always you'll want fresh data from the database displayed just prior to a presentation being displayed. If you populate information from a database inside your BPM Object's constructor, the information would be populated when the instance gets created in the Begin activity. If an instance takes 3 weeks to reach the 5th activity in the process, this same stale information populated 3 weeks ago when the object was initialized will be displayed in presentations shown in this activity. Presentations can have an initialization method (method run just before the presentation is shown). Consider using presentation initialization methods to retrieve the latest information from the database.
    Hope this helps,
    Dan

  • Event 5858 from WMI-Activity

    Many instances of Event 5858 from WMI-Activity are appearing in the Microsoft-Windows-WMI-Activity/Operational log.
    An example of the event message text is "Id = {BA4361BF-423A-0001-1284-43BA3A42CD01}; ClientMachine = SERVER1; User = SERVER\bnf1; ClientProcessId = 928; Component = Unknown; Operation = Start IWbemServices::ExecQuery - root\cimv2 : SELECT * FROM Win32_ComputerSystem;
    ResultCode = 0x80041032; PossibleCause = Unknown
    Is there a solution or a workaround?
    Thanks.

    The core problem for this set of issues is that the WMI error event ID 5858 is being generated generically and is not only representing functional error conditions.
    Unfortunately, for application/backwards compatibility, we can’t just get rid of it, because people have gone to the effort of parsing the event (more below) to look for the instances where there is useful data.
    Event 5858 is generated any time there is an error returned to the WMI client API. Many of these “errors” are behaviors that the client application handles (for example, checking
    for something that is not present), so seeing event 5858 does not tell you enough. The user data section of the event has the information to explain if the problem is important, but it must be parsed. That makes this event hard to use for monitoring, so some
    notes on that are at the end.
    To understand WMI event 5858, the key elements are in userdata, specifically:
    ResultCode – this tells you the real reason event is generated, and is the most valuable piece of information. More info is below, but searching TechNet for the ResultCode will
    usually give you the information you need.
    Operation – the relevant info follows “Start IWbemServices::”, and tells you what WMI was asked to do. This includes run a query, enumerate/create/delete instances, look for
    a class, etc. There is a full list here: //msdn.microsoft.com/en-us/library/windows/desktop/gg196568(v=vs.85).aspx
    User – it sometimes it helps to know what account was trying to do the Operation, particularly if the ResultCode is 0x80041003 – Access Denied.
    ResultCode details: There is a good list of ResultCodes here: //support.microsoft.com/kb/295821.
    The ones listed in this thread are:
    0x80041032 – Call Cancelled. The client application cancelled the request that was made. That is almost always ignorable as a WMI error. The component or application (SCCM,
    or Group Policy) for example) that was calling into WMI cancelled the request, and will likely generate its own event if it is important to do.
    0x8004100A – Critical Error. This could be a significant problem, and should be investigated. The WMI infrastructure is not working properly. You can either use WMIDiag (see
    this article: //blogs.technet.com/b/askperf/archive/2012/02/03/wmidiag-2-1-is-here.aspx)
    or from an elevated command prompt run Winmgmt –VerifyRepository.  
    0x80041002 – Not Found. This is usually ignorable by itself. It means that WMI could not find the instance of a class that was requested, which is not unusual.
    0x8004100F – Invalid Object. This could be a significant problem and should be investigated. It could be a problem where the WMI provider is badly written, or it could be an
    issue within the WMI repository. See Troubleshooting below.
    Operation details – This begins with “Start IWbemServices::”, then the actual operation, with parameters you can use to find out more info. Examples from the thread above are:
    ExecQuery – run a WMI query. The structure is ExecQuery - <namespace> : <query>. Example is ExecQuery - root\CIMV2 : select * from Win32_OperatingSystem Where ProductType!=2
    or ProductType!=3. You can use the PS command get-wmiobject –namespace (insert the namespace) –query “(insert the query portion)”
    DeleteInstance – delete a specific instance of a WMI class. Looks like: DeleteInstance - <namespace>: <instance information>. Example is DeleteInstance - Root\Rsop\User\S_1_5_21_1447720405_913420198_1853421413_1156
    : RSOP_ExtensionStatus.extensionGuid="{1A6364EB-776B-4120-ADE1-B63A406A76B5}".
    CreateInstanceEnum – sets up to enumerate all instances of a class. Structure is CreateInstanceEnum - <namespace> : <classname>.
    Troubleshooting:
    As noted, some of the issues listed above are important to understand. There are some good topics on WMI Troubleshooting in TechNet, so I won’t try to repeat them. There is
    a generally good article here:
    technet.microsoft.com/en-us/magazine/2006.09.wmievents.aspx.
    The most critical things to check for are repository issues, which you can do either using WMIDiag (see this article:
    blogs.technet.com/b/askperf/archive/2012/02/03/wmidiag-2-1-is-here.aspx) or from an
    elevated command prompt run Winmgmt –VerifyRepository, and confirm that the repository is in good shape.
    Monitoring:
    You have to parse event 5858 to get the critical info, so other events are easier to use
    for monitoring. The most critical events to watch for relating to WMI are still in the Windows-Application log, not Microsoft-Windows-WMI-Activity/Operational log (where event 5858 is found). All of the most serious errors that will show up with an event 5858
    will also have something in the Windows-Application log. Documentation for the most relevant events are listed in multiple topics under this reference:
    //technet.microsoft.com/en-us/library/cc727020(v=ws.10).aspx
    In summary:
    Event 5858 is confusing, generally ignorable, and unfortunately not something we can get rid of easily. It does provide valuable information if you know how to parse it. The
    most relevant information is the ResultCode in the UserData section – copy and paste that into a search of TechNet for meaningful information.

  • Automatic Active Sync failed to Start at appropriate time

    Hellos,
    Its holiday season here. We had a FF Active Sync process that failed to start up.
    Ops noted an overheating CPU at 2am. Server was brought down.. App server stopped, Database stopped. Fan fixed and Server rebooted.. Database started Ok, App server started Ok.. according to AS Log idM started up ok... but the 'automatic' Active Sync process refused to start.
    What could prevent it?!
    I have seen various people's opinions.. e.g.
    "Hi,
    There can be lot of reasons , for not starting activesync.
    if you are using activesync between SIM and database ,
    then lets start from activesync wizard ,
    1)check the i/p activesync form(version should be correct)
    2)check the startup type
    3) if you are using query based activesync
    check the first and last predicate fields and you need to ensure that the logic you have used in i/p activesync form will generate some processing once you start active sync otherwise you will not see active sync in executing state.
    you can check weather activesync has performed operation or not in IAPI in the debug page under configurator
    if your CPU utilisation on server is very high activesync will not start
    these are general things
    if you can give some more specific details abt your application and problem i can help you out.
    Warm Regards,
    Gajanan"
    This process had been left unstarted for some time. Noone checked.. why should they.. its automatic (obviously IdM isnt an R.E.M. fan)
    Surely an automatic start type should (re)start after a reboot for hardware reasons!
    Is the only thing we can we put in a Solaris shell script to test that these ****ing active sync process have been started and are running after a reboot/restart of App.server is a date test of the log file? i.e. if log file has not been touched in x days raise an alarm... seems something that is better built into IdM than a script.
    How has this problem been faced and met by others out there? I am sure we are not the only people who have had to shutdown and restart IdM.

    Indeed it does. The problem is that a log is just that.. a log of what has happened. In our case the 'automatic' AS process failed to start automatically.
    We are forced to use the log and reverse apriori reasoning to detect whether the AS process actually started.
    I hope you agree this situation isnt really satisfactory, is it?

Maybe you are looking for

  • Is this a copy of my hard drive?  Can I trash it?

    Hello Helpful Apple People, I recently hit too many of the wrong keys at the same time and I ended up with this icon on my desktop: I'm not sure what it is, but I believe it's a copy of my hard drive?  (My original hard drive is still on the desktop.

  • Error creating AIR file: 105:ERROR, application.installFolder

    I renamed my project and can not create release build. would be nice to what I did that broke it. here is the Error message during the Export Release Build: Error creating AIR file: 105: ERROR, application.installFolder also, when I close flex builde

  • How do you call scripts in subfolders using ODT 11.1.0.5.10 beta?

    Hello, I'm trying to create a script that calls several other scripts. The scripts I want to call are in a subfolder. Does anyone know the syntax I can use to call them? Structure: Providers +---Create All Script.sql +---Create +-------InstallOracleA

  • Flash player and linux

    hi all how r u? i develope an application in flex and i want to run it on linux i installed flash player 10 on firefox on linux and everything works good but in english my application is multilanguage after changing the language to arabic everything

  • Why won't Adobe Premiere Elements Editor load in Mavericks OS

    since updating to mavericks os i am unable to load or use adobe premiere elements 11 editor which i origanally purchased from the app store the program previously worked fine in mountain lion os.has anyone else experienced this problem.