SAP Scheduler. Multiple jobs for one job definition issue.

Hi.
I am facing one problem concerning scheduling jobs. I've created a job definition and deployed it on server. In onJob(...) method system queries to DB for a single result, when this result matches some conditions job is finished, otherwise it waits for a minute and then queries again. Then I tried to create several tasks for this job definition and set similar execution time for all tasks to check their simultaneous behavior. I was surprised to find out that only one job status is 'RUNNING' and for others status is 'STARTING'. But I expected to see all my jobs in status 'RUNNING'. At first I thought the problem was in MDB pool stuff(e.g. InitialSize of beans or something like that), supposing that there is only one working bean and huge queue  of messages. But nothing changed after setting different values for pool params.
So, can anyone help me to make at least 2 simultaneous working  jobs for one job definition, if it possible, off cause. Or may be I am wrong somewhere. (By the way, I used Threads in MDB for waiting).
Thanks in advance.

May be I described my problem rather messy. The main question is it possible to create several jobs for one job definition and see them running at the same time (simultaneously)?
Thanks.

Similar Messages

  • Multiple IT1005 for one job

    Can we have multiple planned compensation (IT1005) records for one job within the same country? The standard SAP has the time constraint as "3" for IT1005 and that means that it can have multiple records with the same dates. We want to use different pay structures for various positions attached to the same job. How is it going to affect the sub-modules in ECM like Job Pricing where the Job Evaluation/Survey are going to be used based on the same jobs/planned comp records.
    What is the best practice in this regard, generally in US and other countries?

    Hi,
    Yes you can use.
    Regards,
    Kapil

  • Multiple Labels for One Order

    Can anybody tell me if it is possible to produce multiple labels for one order. For example a customer orders 4 units. A standard package holds 3 units so an additional package is required for the fourth unit. As a result two packing labels are required. Does OM 11i support this?

    Hi Aj
    Thanks for your quick response. I was think on the same lines and you have confirmed that we will have to split the line into several lines on sales order.
    I am trying to do that now in our ECC box i.e item 10 with payer 1 and item 2 with payer 2. But as soon as I try to change the payer on item 2, i get the following error message which relates to credit management being active.
    I am assuming once we decativate CM, we should be good to go. PLease confirm. Also once its time for billing, will SAP automatically split the billing into different invoices per sales order line item based upon number of payers on the line items?
    PLease confirm your thoughts.
    Regards
    Jai

  • Multiple Vendors for one Document Number in BW

    Hello All,
    We are getting Multiple Vendors for one document in BW. In R/3, standard table and RSA3, we are able to see correct vendor where as when it is coming into BW it is showing incorrect vendor in PSA and Data Target.
    All issues are coming for Process Key 1 only.
    *For Example:*
    Document: 9400000007
    Schedule Line:1
    Doc Item: 1
    Vendor:
    0010019229 - Incorrect Vendor
    0010018962 - Correct Vendor
    Committed Quantity: 0
    Doc Type:
    ZNB
    ZNPP
    Process Key: 1
    Not sure how to upload screen shot.
    Please suggest.
    Thanks,
    Vijay

    Hi ,
    Are you loading for the first time ? If yes have you checked Transaction BF11 settings.
    Regards
    Rahul Bindroo

  • Can you have multiple users for one account?

    Can you have multiple users for one account? if so how do you set it up.
    We are using it for our department and it would be great to see who created what form instead of it being all one name.

    Each person should have their own account. You can easily share the forms with other people in your department. You will be able to see who the author of the form is.
    More information on how to share :
    http://forums.adobe.com/docs/DOC-2462
    Information on how to copy a forms to a different account :
    http://forums.adobe.com/docs/DOC-1390
    Hope this helps
    Gen

  • How do i scan multiple pages for one attachment

    I know how to scan but I don't know how to scan multiple pages for one attachement....Help please

    Hi dagda24,
    You can scan multiple pages into a single document with the scan to PDF option.  Use the following steps to do so:
    1.  Open MP Navigator.
    2.  Click One Clcik.
    3.  Click Save to PC.
    4.  Change the File Type from PDF to PDF (multiple pages).
    5.  Make any other changes as needed, then click scan.
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • How to open multiple sessions for one user?

    Sorry for the silly question but I couldn't find it googling or searching through this forum, so I started wondering whether it's possible in SQL Developer to open multiple sessions for one user. I'm fairly new to SQL Developer and databases in general.
    When I open SQL Developer and connect to a schema, a worksheet opens named MYSCHEMA. If I disconnect then connect, another worksheet opens, named MYSCHEMA~1. I assumed these were different sessions, but if I enter into one worksheet:
    select col1 from my_table where row_id = 1
    -- shows result is 1
    update my_table set col1 = 0 where row_id = 1
    select col1 from my_table where row_id = 1
    -- shows result is 0and then enter into the second worksheet:
    select col1 from my_table where row_id = 1
    -- shows result is 0I would have expected the second worksheet to report 1 because the first worksheet did not issue a COMMIT. Thus, I'd guess both worksheets are the same session? Is that right? If so, how do I have two sessions open simultaneously (opened by same user)?
    I'm trying to implement the code at the bottom of this post, for which testing requires at least two sessions:
    Re: Help with Procedure
    Edited by: tem on Apr 18, 2012 6:44 AM

    Thanks Jim,
    Ctrl-Shift-N doesn't do anything for me. I'm on a mac -- by experimenting it looks like command-N does what you're looking for. This appears to be the same as left-clicking on the "New" icon in the top left corner of SQL Developer, or selecting from the pull-down menu, File > New.
    This opens "Create a New" window that appears to be a wizard. What would I select at this point? Options are: Database Connection, Table, View, Package, ...
    I don't see an option for "Worksheet".
    UPDATE:
    OK, I found that if I select "SQL File", a worksheet becomes available. Perhaps this is what you intended. However, when I issue the command
    select col1 from my_table where row_id = 1;it still returns 0 instead of 1. Hmm, maybe my initial assumption was wrong -- if this is a second (e.g. different) session, should I expect the changes made in the first session in SQL Developer (the UPDATE command) WITHOUT a commit, to be observed in this second session? I thought that changes made in one session were not viewable in a different session until these changes are committed in the first session? If so, how to show this in SQL Developer? I must be missing something basic here.
    Or, is SQL Developer issuing some sort of "auto-commit" without my knowledge?
    Edited by: tem on Apr 18, 2012 8:00 AM

  • Multiple Values For one Condition in Choose From List

    I have used one Business Partner Choose From List in my form but i want to give condition in that choose from list on GroupCode .But the condition will have multiple values like 100,102,104 then how i will write the code to incorporate multiple values for one single condition.

    Hi,
    Check this thread
    How to set a Multiple condition in a single CFL
    Hope that helps,
    Vasu Natari.

  • Multiple currency for one vendor

    Hi,
    Is there any way to have multiple currency for one Vendor?

    Hi Siva,
    Yes, It is possible to maintain multiple currency for one vendor. How ? The procedure as follows.
    During vendor creation using T-code XK01 and currency enter input data screen select Extra option on the top of the screen click and display  'Add Purchasing Data'  option click opened new screen and give input data plant, tick mark of the option Data retent.at plant level allowed and tick for OK.
    After that, you have enter multiple currency for the same vendor during vendor creation time, then you will create PO using T-code ME21N the currency field you have fill as you required currency by default first currency of vendor created will be display.
    Hope, it is useful for you.
    Regards,
    K.Rajendran

  • Multiple choose for one parameter

    Hi, does Oracle Report support the multiple choose for one parameter? i used a IN statement inside my WHERE conditions as following
    Select ....
    where ....
    content.style IN (:p_style)
    (content.style is a column in table "content", and "p_style" is a bind variable)
    i want user can have multiple choises on p_style value. but in the parameter form i only can make one choise. Does any one know how to do the multi choise from parameter form? if you do, please help me. Thank you very much.
    Li

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by whl:
    Hi, does Oracle Report support the multiple choose for one parameter? i used a IN statement inside my WHERE conditions as following
    Select ....
    where ....
    content.style IN (:p_style)
    (content.style is a column in table "content", and "p_style" is a bind variable)
    i want user can have multiple choises on p_style value. but in the parameter form i only can make one choise. Does any one know how to do the multi choise from parameter form? if you do, please help me. Thank you very much.
    Li<HR></BLOCKQUOTE>
    you can do that by flowing the stap
    at first you will write a select statement
    select ...
    From ...
    where Style (colomn name) = &style1
    then you create a user parameter soupose wich name is P_style and which valus is x, y, and z you should enter another value soupose that name is 'All' (All means x + y + Z)
    then you write in after parameter form trigger...
    IF :P_style = 'All' then
    :style1 := null;
    Else :style1 := 'and style (style means your column name) = :P_style;
    end if;
    null

  • Multiple payers for one sold to party

    Hi All,
    Can we have multiple payers for one sold to party?
    Thanks

    Hi
    Yes, you can have multiple PAYER for one Sold-to-party (only in the Customer master).
    This Partner relationship is maintained in two places. They are,
    > Customer master ( sales area data > partner function tab )
    > Sales documents (at Header level and Item level)
    In Customer master data, you can have multiple partners ( e.g, multiple Payers) for one Partner function( e.g, SH,BP,PY).
    But in Sales document, you can have only one Partner for one Partner function.
    So, you can have only in Customer master data multiple pertners. So, first create the different Payers through XD01 ,choosing Account group "Payer".
    Then assign all those PAYERS  in the master data of the Sold-to-party by going in the change mode XD02 and save it.
    When you create the Billing document, system will give a pop-up of those list of Payers and you have to choose one . You can have only one Payer in one Billing document.

  • Lightroom 5 slowdown, my post processing times have tripled and the develop tasks take multiple seconds for one adjustment, Please Help. . . .

    my post processing times have tripeled and the develop tasks take multiple seconds for one adjustment, Please Help. . . .

    my post processing times have tripeled and the develop tasks take multiple seconds for one adjustment, Please Help. . . .

  • On my contact list I have multiple names for one person

    On my contact list I have multiple names for one person.

    The Account Owner can see the call/text logs for all lines on the account, but each line needs its own My Verizon account for messaging and backups.  Those lines will be listed as Account Members and will have limited info. available to them regarding the account.

  • SMSY//Logical component definition - multiple roles for one system?

    Dear all,
    as our client has a divided system landscape (three-tier operational line as well as two-tier development line) some systems have more than one role to fill. The development system on development line is source system for all developments, as well as post-processing system for retrofit purpose from operational line. The maintenance system on operational line is target system for developments from development line, as well as source system for maintenance activities on operational line.
    --> What are the consequences of assigning multiple roles to one system?
    --> Is there anonther option than assigning multiple roles?
    Best regards
    Nick

    We have Event Manger 7.0 installed into a stand-alone SCM 7.0 system. When trying to set this up in SMSY, the only options given for setting up the Logical System is to associate with with EHP3 or EHP4 for in ECC 6.0.
    Obviously we have not installed EM into ECC. So where are the other appropriate entries in SMSY for recognizing that EM is installed in SCM?
    1) This system must be maintained as SCM 7.0 in SMSY and not as SAP ERP 6.0 or EHPX for SAP ERP 6.0, this is the reason as you can see this system SCM 7.0 can be assigned just to SAP ERP 6.0 or EHPX for SAP ERP 6.0.
    2) There's no Main Instance available to be selected when you have a SAP SCM 7.0. You must select one or more of the following main instances below.
    BI Content
    SCM Server
    cFolders on SCM Server
    GEOCODING
    Portal Content
    SAP LiveCache
    SAP NW - Adobe Docu. Service
    SCM Optimizer
    SCM WCL
    XI Content
    These are the main instances available to SCM 7.0

  • Multiple Alerts for one Monitor

    Hi All,
    I have a MP to monitor a scheduled task and get the last run status of the task and fire an alert if it is sort of not running.
    The alert is getting generated and getting closed for every 15 min(schedule time of the monitor). But this alert is getting repeated. I dont see any fault in my mp.
    and the code goes this way:
    <?xml version="1.0" encoding="utf-8"?>
    <ManagementPack SchemaVersion="2.0" ContentReadable="true" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <Manifest>
        <Identity>
          <ID>ReviewerRecommendationNightlyJob</ID>
          <Version>1.0.0.26</Version>
        </Identity>
        <Name>ReviewerRecommendationNightly</Name>
        <References>
          <Reference Alias="Windows">
            <ID>Microsoft.Windows.Library</ID>
            <Version>7.5.8501.0</Version>
            <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
          </Reference>
          <Reference Alias="Health">
            <ID>System.Health.Library</ID>
            <Version>7.0.8433.0</Version>
            <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
          </Reference>
          <Reference Alias="System">
            <ID>System.Library</ID>
            <Version>7.5.8501.0</Version>
            <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
          </Reference>
        </References>
      </Manifest>
      <TypeDefinitions>
        <EntityTypes>
          <ClassTypes>
            <ClassType ID="Reviewer.Recommendation.Nightly.ScheduleTaskService" Accessibility="Public" Abstract="false" Base="Windows!Microsoft.Windows.LocalApplication" Hosted="true" Singleton="false"
    Extension="false" />
            <ClassType ID="Reviewer.Recommendation.Nightly.rrn" Accessibility="Public" Abstract="false" Base="Windows!Microsoft.Windows.ApplicationComponent" Hosted="true" Singleton="false"
    Extension="false">
              <Property ID="Path" Type="string" AutoIncrement="false" Key="false" CaseSensitive="false" MaxLength="256" MinLength="0" Required="false" Scale="0"
    />
              <Property ID="ID" Type="string" AutoIncrement="false" Key="true" CaseSensitive="false" MaxLength="256" MinLength="0" Required="false" Scale="0"
    />
            </ClassType>
          </ClassTypes>
          <RelationshipTypes>
            <RelationshipType ID="Reviewer.Recommendation.Nightly.ScheduleTaskServicehostTask.rrn" Accessibility="Public" Abstract="false" Base="System!System.Hosting">
              <Source ID="Source" MinCardinality="0" MaxCardinality="2147483647" Type="Reviewer.Recommendation.Nightly.ScheduleTaskService" />
              <Target ID="Target" MinCardinality="0" MaxCardinality="2147483647" Type="Reviewer.Recommendation.Nightly.rrn" />
            </RelationshipType>
          </RelationshipTypes>
        </EntityTypes>
        <ModuleTypes>
          <DataSourceModuleType ID="Reviewer.Recommendation.Nightly.ScheduledTask.ClassDiscovery" Accessibility="Public" Batching="false">
            <Configuration>
              <IncludeSchemaTypes>
                <SchemaType>System!System.Discovery.MapperSchema</SchemaType>
                <SchemaType>System!System.ExpressionEvaluatorSchema</SchemaType>
              </IncludeSchemaTypes>
              <xsd:element minOccurs="1" name="IntervalSeconds" type="xsd:integer" xmlns:xsd="http://www.w3.org/2001/XMLSchema" />
              <xsd:element minOccurs="1" name="SyncTime" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema" />
              <xsd:element minOccurs="1" name="TargetComputer" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema" />
              <xsd:element minOccurs="1" name="Expression" type="ExpressionType" xmlns:xsd="http://www.w3.org/2001/XMLSchema" />
              <xsd:element minOccurs="1" name="ClassId" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema" />
              <xsd:element minOccurs="1" name="InstanceSettings" type="SettingsType" xmlns:xsd="http://www.w3.org/2001/XMLSchema" />
            </Configuration>
            <OverrideableParameters>
              <OverrideableParameter ID="IntervalSeconds" Selector="$Config/IntervalSeconds$" ParameterType="int" />
              <OverrideableParameter ID="SyncTime" Selector="$Config/SyncTime$" ParameterType="string" />
            </OverrideableParameters>
            <ModuleImplementation Isolation="Any">
              <Composite>
                <MemberModules>
                  <DataSource ID="SimpleScheduler" TypeID="System!System.SimpleScheduler">
                    <IntervalSeconds>$Config/IntervalSeconds$</IntervalSeconds>
                    <SyncTime>$Config/SyncTime$</SyncTime>
                  </DataSource>
                  <ProbeAction ID="ScheduledTaskProbe" TypeID="Reviewer.Recommendation.Nightly.ScheduledTask.Probe">
                    <TargetComputer>$Config/TargetComputer$</TargetComputer>
                  </ProbeAction>
                  <ConditionDetection ID="FilteredClassSnapshotDataMapper" TypeID="System!System.Discovery.FilteredClassSnapshotDataMapper">
                    <Expression>$Config/Expression$</Expression>
                    <ClassId>$Config/ClassId$</ClassId>
                    <InstanceSettings>$Config/InstanceSettings$</InstanceSettings>
                  </ConditionDetection>
                </MemberModules>
                <Composition>
                  <Node ID="FilteredClassSnapshotDataMapper">
                    <Node ID="ScheduledTaskProbe">
                      <Node ID="SimpleScheduler" />
                    </Node>
                  </Node>
                </Composition>
              </Composite>
            </ModuleImplementation>
            <OutputType>System!System.Discovery.Data</OutputType>
          </DataSourceModuleType>
          <ProbeActionModuleType ID="Reviewer.Recommendation.Nightly.ScheduledTask.Probe" Accessibility="Public" Batching="false" PassThrough="false">
            <Configuration>
              <xsd:element minOccurs="1" name="TargetComputer" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema" />
            </Configuration>
            <ModuleImplementation Isolation="Any">
              <Composite>
                <MemberModules>
                  <ProbeAction ID="Probe" TypeID="Windows!Microsoft.Windows.ScriptPropertyBagProbe">
                    <ScriptName>ScheduledTask.Probe.Script.vbs</ScriptName>
                    <Arguments>$Config/TargetComputer$</Arguments>
                    <ScriptBody>
                      Option Explicit
                      Dim oArgs, strTargetComputer, strOutput
                      Set oArgs = WScript.Arguments
                      strTargetComputer = oArgs(0)
                      'create the container for the properties
                      Dim oAPI, oBag
                      Set oAPI = CreateObject("MOM.ScriptAPI")
                      strOutput = "Ouput from script"
                      'Finding the Operating System version, as this will impact how we discover tasks later on
                      'W2KorWXP=Windows 2000 Professional or Server, or Windows XP
                      'W2K3=Windows Server 2003
                      'W2K8orHigher=Windows Vista, Windows Server 2008, Windows 7, Windows Server 2008 R2 =&gt; Where tasks can be accessed using scripting
                      Dim strComputer, objWMIService, colOperatingSystems, objOperatingSystem, HostVersion
                      strComputer = strTargetComputer
                      Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" &amp; strComputer &amp; "\root\cimv2")
                      Set colOperatingSystems = objWMIService.ExecQuery("Select * from Win32_OperatingSystem")
                      For Each objOperatingSystem in colOperatingSystems
                      If (Left(objOperatingSystem.Version, 3) = "5.0" or Left(objOperatingSystem.Version, 3) = "5.1") Then HostVersion = "W2KorWXP"
                      If (Left(objOperatingSystem.Version, 3) = "5.2") Then HostVersion = "W2K3"
                      If (Left(objOperatingSystem.Version, 3) = "6.0" or Left(objOperatingSystem.Version, 3) = "6.1" or objOperatingSystem.Version = "6.3.9600") Then HostVersion = "W2K8orHigher"
                      Next
                      strOutput = strOutput &amp; Chr(10) &amp; "HostVersion: " &amp; HostVersion
                      'Discovering scheduled tasks, using a different technique
                      'A different technique is used for Windows Server 2003 and earlier (schtasks.exe) and for Windows Server 2008 and higher (scripting)
                      'Actions of type Command Line are also discovered for Windows Server 2008 and later (so we can monitor their executable target existence
                      Dim intRow
                      intRow = 1
                      If (HostVersion = "W2K8orHigher") Then
                      Dim rootFolder, service
                      Set service = CreateObject("Schedule.Service")
                      call service.Connect()
                      Set rootFolder = service.GetFolder("\")
                      Call GetTasks(rootFolder)
                      End If
                      'return the container to SCOM
                      Call oAPI.ReturnItems()
                      Call oAPI.LogScriptEvent("ScheduledTaskProbe.vbs", 112, 0, strOutput)
                      Function GetTasks(oFolder)
                      Dim taskCollection , registeredTask, oFld
                      Set taskCollection = oFolder.GetTasks(0)
                      If taskCollection.Count &lt;&gt; 0 Then
                      For Each registeredTask In taskCollection
                      Set oBag = oAPI.CreatePropertyBag()
                      Call oBag.AddValue("RowNumber", intRow)
                      intRow = intRow + 1
                      Call oBag.AddValue("TaskName", registeredTask.Name)
                      Call oBag.AddValue("TaskUserId", registeredTask.Definition.Principal.UserId)
                      Call oBag.AddValue("TaskEnabled", registeredTask.Enabled)
                      Call oBag.AddValue("TaskAuthor", registeredTask.Definition.RegistrationInfo.Author)
                      Call oBag.AddValue("TaskPath", registeredTask.Path)
                      Call oBag.AddValue("TaskStatus", registeredTask.LastTaskResult)
                      Call oBag.AddValue("TaskLastTaskResult", registeredTask.LastTaskResult)
                      Call oBag.AddValue("TaskLastRunTime", registeredTask.LastRunTime)
                      Call oBag.AddValue("TaskNextRunTime", registeredTask.NextRunTime)
                      Call oBag.AddValue("TaskState", registeredTask.State)
                      Call oBag.AddValue("TaskNumberOfMissedRuns", registeredTask.NumberOfMissedRuns)
                      Call oBag.AddValue("TaskMinutesSinceLastRunTime", DateDiff("n", registeredTask.LastRunTime, Now()))
                      Call oBag.AddValue("TaskMinutesUntilNextRunTime", DateDiff("n", Now(), registeredTask.NextRunTime))
                      Call oBag.AddValue("TaskDescription", registeredTask.Definition.RegistrationInfo.Description)
                      oAPI.AddItem(oBag)
                      strOutput = strOutput &amp; Chr(10) &amp; "Task: " &amp; registeredTask.Name
                      Next
                      End If
                      For each oFld in oFolder.GetFolders(0)
                      Call GetTasks(oFld)
                      Next
                      End Function
                    </ScriptBody>
                    <TimeoutSeconds>300</TimeoutSeconds>
                  </ProbeAction>
                </MemberModules>
                <Composition>
                  <Node ID="Probe" />
                </Composition>
              </Composite>
            </ModuleImplementation>
            <OutputType>System!System.PropertyBagData</OutputType>
            <InputType>System!System.TriggerData</InputType>
          </ProbeActionModuleType>
        </ModuleTypes>
        <MonitorTypes>
          <UnitMonitorType ID="Reviewer.Recommendation.Nightly.ScheduledTask.MonitorType" Accessibility="Public">
            <MonitorTypeStates>
              <MonitorTypeState ID="GreenState" NoDetection="false" />
              <MonitorTypeState ID="RedState" NoDetection="false" />
            </MonitorTypeStates>
            <Configuration>
              <IncludeSchemaTypes>
                <SchemaType>System!System.ExpressionEvaluatorSchema</SchemaType>
              </IncludeSchemaTypes>
              <xsd:element minOccurs="1" name="IntervalSeconds" type="xsd:integer" xmlns:xsd="http://www.w3.org/2001/XMLSchema" />
              <xsd:element minOccurs="1" name="SyncTime" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema" />
              <xsd:element minOccurs="1" name="TargetComputer" type="xsd:string" xmlns:xsd="http://www.w3.org/2001/XMLSchema" />
              <xsd:element minOccurs="1" name="RedExpression" type="ExpressionType" xmlns:xsd="http://www.w3.org/2001/XMLSchema" />
              <xsd:element minOccurs="1" name="GreenExpression" type="ExpressionType" xmlns:xsd="http://www.w3.org/2001/XMLSchema" />
            </Configuration>
            <MonitorImplementation>
              <MemberModules>
                <DataSource ID="SimpleScheduler" TypeID="System!System.SimpleScheduler">
                  <IntervalSeconds>$Config/IntervalSeconds$</IntervalSeconds>
                  <SyncTime>$Config/SyncTime$</SyncTime>
                </DataSource>
                <ProbeAction ID="ScheduledTaskProbe" TypeID="Reviewer.Recommendation.Nightly.ScheduledTask.Probe">
                  <TargetComputer>$Config/TargetComputer$</TargetComputer>
                </ProbeAction>
                <ConditionDetection ID="GreenExpressionFilter" TypeID="System!System.ExpressionFilter">
                  <Expression>$Config/GreenExpression$</Expression>
                </ConditionDetection>
                <ConditionDetection ID="RedExpressionFilter" TypeID="System!System.ExpressionFilter">
                  <Expression>$Config/RedExpression$</Expression>
                </ConditionDetection>
              </MemberModules>
              <RegularDetections>
                <RegularDetection MonitorTypeStateID="GreenState">
                  <Node ID="GreenExpressionFilter">
                    <Node ID="ScheduledTaskProbe">
                      <Node ID="SimpleScheduler" />
                    </Node>
                  </Node>
                </RegularDetection>
                <RegularDetection MonitorTypeStateID="RedState">
                  <Node ID="RedExpressionFilter">
                    <Node ID="ScheduledTaskProbe">
                      <Node ID="SimpleScheduler" />
                    </Node>
                  </Node>
                </RegularDetection>
              </RegularDetections>
            </MonitorImplementation>
          </UnitMonitorType>
        </MonitorTypes>
      </TypeDefinitions>
      <Monitoring>
        <Discoveries>
          <Discovery ID="ReviewerRecommendationNightlyJob.Reviewer.Recommendation.Nightly.rrn.Discovery" Target="Reviewer.Recommendation.Nightly.ScheduleTaskService" Enabled="true" ConfirmDelivery="false"
    Remotable="true" Priority="Normal">
            <Category>Discovery</Category>
            <DiscoveryTypes />
            <DataSource ID="Task.Class.Discovery.DS" TypeID="Reviewer.Recommendation.Nightly.ScheduledTask.ClassDiscovery">
              <IntervalSeconds>900</IntervalSeconds>
              <SyncTime></SyncTime>
              <TargetComputer>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</TargetComputer>
              <Expression>
                <RegExExpression>
                  <ValueExpression>
                    <XPathQuery>Property[@Name='TaskName']</XPathQuery>
                  </ValueExpression>
                  <Operator>ContainsSubstring</Operator>
                  <Pattern>ReviewerRecommendationNightlyJob</Pattern>
                </RegExExpression>
              </Expression>
              <ClassId>$MPElement[Name="Reviewer.Recommendation.Nightly.rrn"]$</ClassId>
              <InstanceSettings>
                <Settings>
                  <Setting>
                    <Name>$MPElement[Name="Reviewer.Recommendation.Nightly.rrn"]/ID$</Name>
                    <Value>$Data/Property[@Name='TaskName']$</Value>
                  </Setting>
                  <Setting>
                    <Name>$MPElement[Name="Windows!Microsoft.Windows.Computer"]/PrincipalName$</Name>
                    <Value>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</Value>
                  </Setting>
                  <Setting>
                    <Name>$MPElement[Name="Reviewer.Recommendation.Nightly.rrn"]/Path$</Name>
                    <Value>$Data/Property[@Name='TaskPath']$</Value>
                  </Setting>
                  <Setting>
                    <Name>$MPElement[Name="System!System.Entity"]/DisplayName$</Name>
                    <Value>$Data/Property[@Name='TaskName']$</Value>
                  </Setting>
                </Settings>
              </InstanceSettings>
            </DataSource>
          </Discovery>
          <Discovery ID="ReviewerRecommendationNightlyJob.Reviewer.Recommendation.Nightly.ScheduleTaskService.Discovery" Target="Windows!Microsoft.Windows.Computer" Enabled="true" ConfirmDelivery="false"
    Remotable="true" Priority="Normal">
            <Category>Discovery</Category>
            <DiscoveryTypes />
            <DataSource ID="DS" TypeID="Windows!Microsoft.Windows.WmiProviderWithClassSnapshotDataMapper">
              <NameSpace>\\$Target/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$\ROOT\CIMV2</NameSpace>
              <Query>select * from Win32_Service where Name='Schedule' and StartMode='Auto'</Query>
              <Frequency>900</Frequency>
              <ClassId>$MPElement[Name="Reviewer.Recommendation.Nightly.ScheduleTaskService"]$</ClassId>
              <InstanceSettings>
                <Settings>
                  <Setting>
                    <Name>$MPElement[Name="Windows!Microsoft.Windows.Computer"]/PrincipalName$</Name>
                    <Value>$Target/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</Value>
                  </Setting>
                  <Setting>
                    <Name>$MPElement[Name="System!System.Entity"]/DisplayName$</Name>
                    <Value>ReviewerRecommendationNightly</Value>
                  </Setting>
                </Settings>
              </InstanceSettings>
            </DataSource>
          </Discovery>
        </Discoveries>
        <Monitors>
          <UnitMonitor ID="ReviewerRecommendationNightlyJob.Reviewer.Recommendation.Nightly.rrn.LastStatus" Accessibility="Internal" Enabled="true" Target="Reviewer.Recommendation.Nightly.rrn" ParentMonitorID="Health!System.Health.AvailabilityState"
    Remotable="true" Priority="Normal" TypeID="Reviewer.Recommendation.Nightly.ScheduledTask.MonitorType" ConfirmDelivery="false">
            <Category>AvailabilityHealth</Category>
            <AlertSettings AlertMessage="ReviewerRecommendationNightlyJob.Reviewer.Recommendation.Nightly.rrn.LastStatus.AlertMessage">
              <AlertOnState>Error</AlertOnState>
              <AutoResolve>true</AutoResolve>
              <AlertPriority>Normal</AlertPriority>
              <AlertSeverity>Error</AlertSeverity>
            </AlertSettings>
            <OperationalStates>
              <OperationalState ID="GreenState" MonitorTypeStateID="GreenState" HealthState="Success" />
              <OperationalState ID="RedState" MonitorTypeStateID="RedState" HealthState="Error" />
            </OperationalStates>
            <Configuration>
              <IntervalSeconds>900</IntervalSeconds>
              <SyncTime></SyncTime>
              <TargetComputer>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</TargetComputer>
              <RedExpression>
                <And>
                  <Expression>
                    <SimpleExpression>
                      <ValueExpression>
                        <XPathQuery>Property[@Name='TaskName']</XPathQuery>
                      </ValueExpression>
                      <Operator>Equal</Operator>
                      <ValueExpression>
                        <Value>$Target/Property[Type="Reviewer.Recommendation.Nightly.rrn"]/ID$</Value>
                      </ValueExpression>
                    </SimpleExpression>
                  </Expression>
                  <Expression>
                    <SimpleExpression>
                      <ValueExpression>
                        <XPathQuery>Property[@Name='TaskPath']</XPathQuery>
                      </ValueExpression>
                      <Operator>Equal</Operator>
                      <ValueExpression>
                        <Value>$Target/Property[Type="Reviewer.Recommendation.Nightly.rrn"]/Path$</Value>
                      </ValueExpression>
                    </SimpleExpression>
                  </Expression>
                  <Expression>
                    <Or>
                      <Expression>
                        <SimpleExpression>
                          <ValueExpression>
                            <XPathQuery>Property[@Name='TaskStatus']</XPathQuery>
                          </ValueExpression>
                          <Operator>NotEqual</Operator>
                          <ValueExpression>
                            <Value>0</Value>
                          </ValueExpression>
                        </SimpleExpression>
                      </Expression>
                      <Expression>
                        <SimpleExpression>
                          <ValueExpression>
                            <XPathQuery>Property[@Name='TaskStatus']</XPathQuery>
                          </ValueExpression>
                          <Operator>NotEqual</Operator>
                          <ValueExpression>
                            <Value>267009</Value>
                          </ValueExpression>
                        </SimpleExpression>
                      </Expression>
                      <Expression>
                        <SimpleExpression>
                          <ValueExpression>
                            <XPathQuery>Property[@Name='TaskStatus']</XPathQuery>
                          </ValueExpression>
                          <Operator>NotEqual</Operator>
                          <ValueExpression>
                            <Value>267011</Value>
                          </ValueExpression>
                        </SimpleExpression>
                      </Expression>
                      <Expression>
                        <SimpleExpression>
                          <ValueExpression>
                            <XPathQuery>Property[@Name='TaskStatus']</XPathQuery>
                          </ValueExpression>
                          <Operator>NotEqual</Operator>
                          <ValueExpression>
                            <Value>2147750687</Value>
                          </ValueExpression>
                        </SimpleExpression>
                      </Expression>
                      <Expression>
                        <SimpleExpression>
                          <ValueExpression>
                            <XPathQuery>Property[@Name='TaskStatus']</XPathQuery>
                          </ValueExpression>
                          <Operator>NotEqual</Operator>
                          <ValueExpression>
                            <Value>267012</Value>
                          </ValueExpression>
                        </SimpleExpression>
                      </Expression>
                    </Or>
                  </Expression>
                </And>
              </RedExpression>
              <GreenExpression>
                <And>
                  <Expression>
                    <SimpleExpression>
                      <ValueExpression>
                        <XPathQuery>Property[@Name='TaskName']</XPathQuery>
                      </ValueExpression>
                      <Operator>Equal</Operator>
                      <ValueExpression>
                        <Value>$Target/Property[Type="Reviewer.Recommendation.Nightly.rrn"]/ID$</Value>
                      </ValueExpression>
                    </SimpleExpression>
                  </Expression>
                  <Expression>
                    <SimpleExpression>
                      <ValueExpression>
                        <XPathQuery>Property[@Name='TaskPath']</XPathQuery>
                      </ValueExpression>
                      <Operator>Equal</Operator>
                      <ValueExpression>
                        <Value>$Target/Property[Type="Reviewer.Recommendation.Nightly.rrn"]/Path$</Value>
                      </ValueExpression>
                    </SimpleExpression>
                  </Expression>
                  <Expression>
                    <Or>
                      <Expression>
                        <SimpleExpression>
                          <ValueExpression>
                            <XPathQuery>Property[@Name='TaskStatus']</XPathQuery>
                          </ValueExpression>
                          <Operator>Equal</Operator>
                          <ValueExpression>
                            <Value>0</Value>
                          </ValueExpression>
                        </SimpleExpression>
                      </Expression>
                      <Expression>
                        <SimpleExpression>
                          <ValueExpression>
                            <XPathQuery>Property[@Name='TaskStatus']</XPathQuery>
                          </ValueExpression>
                          <Operator>Equal</Operator>
                          <ValueExpression>
                            <Value>267009</Value>
                          </ValueExpression>
                        </SimpleExpression>
                      </Expression>
                      <Expression>
                        <SimpleExpression>
                          <ValueExpression>
                            <XPathQuery>Property[@Name='TaskStatus']</XPathQuery>
                          </ValueExpression>
                          <Operator>Equal</Operator>
                          <ValueExpression>
                            <Value>267011</Value>
                          </ValueExpression>
                        </SimpleExpression>
                      </Expression>
                      <Expression>
                        <SimpleExpression>
                          <ValueExpression>
                            <XPathQuery>Property[@Name='TaskStatus']</XPathQuery>
                          </ValueExpression>
                          <Operator>Equal</Operator>
                          <ValueExpression>
                            <Value>2147750687</Value>
                          </ValueExpression>
                        </SimpleExpression>
                      </Expression>
                      <Expression>
                        <SimpleExpression>
                          <ValueExpression>
                            <XPathQuery>Property[@Name='TaskStatus']</XPathQuery>
                          </ValueExpression>
                          <Operator>Equal</Operator>
                          <ValueExpression>
                            <Value>267012</Value>
                          </ValueExpression>
                        </SimpleExpression>
                      </Expression>
                    </Or>
                  </Expression>
                </And>
              </GreenExpression>
            </Configuration>
          </UnitMonitor>
        </Monitors>
      </Monitoring>
      <Presentation>
        <StringResources>
          <StringResource ID="ReviewerRecommendationNightlyJob.Reviewer.Recommendation.Nightly.rrn.LastStatus.AlertMessage" />
        </StringResources>
      </Presentation>
      <LanguagePacks>
        <LanguagePack ID="ENU" IsDefault="true">
          <DisplayStrings>
            <DisplayString ElementID="Reviewer.Recommendation.Nightly.ScheduleTaskService">
              <Name>Reviewer Recommendation Nightly class</Name>
              <Description>class for ReviewerRecommendationNightly Job</Description>
            </DisplayString>
            <DisplayString ElementID="Reviewer.Recommendation.Nightly.rrn">
              <Name>Reviewer Recommendation Nightly rrn class</Name>
              <Description>class for ReviewerRecommendationNightly Job</Description>
            </DisplayString>
            <DisplayString ElementID="ReviewerRecommendationNightlyJob.Reviewer.Recommendation.Nightly.rrn.Discovery">
              <Name>ReviewerRecommendationNightlyDiscovery</Name>
              <Description>Discovery for Reviewer Recommendation Nightly Job</Description>
            </DisplayString>
            <DisplayString ElementID="ReviewerRecommendationNightlyJob.Reviewer.Recommendation.Nightly.rrn.LastStatus">
              <Name>ReviewerRecommendationNightlyMonitor</Name>
              <Description>Description for the new unit monitor.</Description>
            </DisplayString>
            <DisplayString ElementID="ReviewerRecommendationNightlyJob.Reviewer.Recommendation.Nightly.rrn.LastStatus.AlertMessage">
              <Name>ReviewerRecommendationNightlyAlert</Name>
              <Description>This alert is to notify that the Task Reviewer Recommendation is not in working state</Description>
            </DisplayString>
            <DisplayString ElementID="ReviewerRecommendationNightlyJob.Reviewer.Recommendation.Nightly.rrn.LastStatus" SubElementID="GreenState">
              <Name>GreenState</Name>
              <Description>GreenState</Description>
            </DisplayString>
            <DisplayString ElementID="ReviewerRecommendationNightlyJob.Reviewer.Recommendation.Nightly.rrn.LastStatus" SubElementID="RedState">
              <Name>RedState</Name>
              <Description>RedState</Description>
            </DisplayString>
            <DisplayString ElementID="ReviewerRecommendationNightlyJob.Reviewer.Recommendation.Nightly.ScheduleTaskService.Discovery">
              <Name>ReviewerRecommendationNightly ScheduleTaskService Discovery</Name>
              <Description>Discovery for Reviewer Recommendation Nightly Job</Description>
            </DisplayString>
          </DisplayStrings>
          <KnowledgeArticles></KnowledgeArticles>
        </LanguagePack>
      </LanguagePacks>
    </ManagementPack>
    Regards, Mahadev Sundeep Maruvada

    Hi,
    Why not to use a event based monitor to detect the Task Schedule running status? I am not familar with VB script, the suggestion I can give is you need to check if the script cannot properly detect the running result of the task Schedule.
    Juke Chou
    TechNet Community Support

Maybe you are looking for

  • NI Motion witth incremental encoder and precise position

    I am currently working on a project that requires me to get the precise position (mesure) with an incremental encoder with 2 channels A and B. I am Using NI Motion, NI UMI-7774,NI PCI 7550, and Labview 10

  • List in prepared statement

    Hi there! How can I make this Prepared Statement: "select * from table where id_table in ?" the possible values for the ? should be something like this: (1, 2, 4, 7). Which method should I use to set the ????? Thanks in advance

  • Stop deliveries for Plant

    Dear Friends, I have a business req like, we need to stop delivery notes for a particular plant. How can we configure this. points assured Rgds Krishna

  • Use functions in parameters?

    Hi, is it possible to use functions in a parameter? We use a parameter for a field from an Oracle database - the values in this field are stored as "Employee ID - Employee Name"; however, we only would like to see the name, not the id in the paramete

  • How to make one file out of many documents?

    Hi, I have a collection of documents created in Pages. I would like to have these available as a single file. I currently have a workaround where I change each document to a PDF, then use Acrobat to create a single PDF from each individual PDF. Howev