parameter number in the task of planning custom in R2

Gurus,

I developed a custom 11 GR 2 IOM planning task that has a parameter of number as one of the entry. I have defined this parm as below in my eventhandler.xml

< number-required param = 'true' helpText 'Number of records to retrieve' = > number of files < / param-number >

By reading this value in the schedule task code, I use this.

Try
{
Records string = String.valueOf (attributes.get ("number of Records"));
System.out.println ("Records" + Records);
}
catch (Exception e) {}
e.printStackTrace ();
}

I even tried the question below, but even.

Try
{
reviews int = Integer.parseInt ((String) attributes.get ("number of Records"));
System.out.println ("Records" + Records);
}
catch (Exception e) {}
e.printStackTrace ();
}


But my work fails said number format exception.

Can you please let me know some code snippet to read a number parameter in a scheduled task.

Here's a code tested for you.

import java.util.HashMap;
Import oracle.iam.scheduler.vo.TaskSupport;

SerializableAttribute public class Test extends TaskSupport {}

public void execute (attributes, HashMap) {}

try {}
Long REC = ((Long) attributes.get ("number of Records")) .longValue ();
Print ((int) REB);
}
catch (Exception e) {}
System.out.println ("Exception 1:"+e.getMessage());
}
}

private void print(int a) {}
System.out.println ("a =" + a);
}

public HashMap getAttributes() {}
Returns a null value.
}

{} public void setAttributes()
}
}

Tags: Fusion Middleware

Similar Questions

  • Number of the task list

    I have a list of tasks in Planning version 11.2.1.1 with one of the tasks being a link url to a report in the workspace. When a user clicks on the task, the report opens in another tab but open only in HTML, even if the user has his financial statement has been defined in PDF format preference. If anyone else has experienced this? Anyone know of a fix? Thanks in advance.

    If you want to open the PDF only EN add '? repository_format_id = pdf"at the end of smartcut and it will be like that, worked at the version 9 worth giving a try:
    http://reporting_machine:19000 / work/travel/get/Folder1/Folder2/report_name space? repository_format_id = pdf

    See you soon...!

  • Last token parameter in planning the task is always 0 and not changing

    Hello

    For all users Active Directory associated with schedule jobs the last token does not change, but jobs is running successfully and users are get from IOM.

    The work took a lot of time. Should I check to overcome this obstacle? Please suggest

    Thank you

    In fact, the name of the task and the parameter of the scheduled task "Name of the scheduled task" were different.

    After their amendment, last token parameter updates correctly.

    Thank you

  • Not able to change the plan of the quality during the inspection of reception using the task of ACEM.

    Hi all

    I am not able to change the plan of the quality during the inspection of reception using the task of ACEM.

    Please suggest what to do on the priority.

    Thank you and best regards,

    Piyush Kudawalee

    Hello

    If you use functions much jump, then you must add a new plan of the quality in the settings of jumps.

    Please go to the root of quality > process lots Skip parameters > application process of Skip lot number attached to the elements > go to settings to jump > add plan new collection...

    This will show you the two quality LIMM and Oracle plans. You can add as many plans as you want and can restrict their in asigning to specific jump lot.

    The quality plan is failing because there can be only plan quality attached to jump a lot.

    NOTE: Please indicate the post as helpful or answered if the update has really helped you. This would also bring the wire to the logical conclusion and will be useful for viewers.

    Thank you

    GHG

  • writing cannot be porformed, because data channels number does not match the number of channels in the task

    Hello

    I'm writing analogues of the buffer to several channels using NOR-6723.

    For some reason any, whenever I go to the buffer double function (1-d) that contains buffers for all channels.

    I always find myself with exception indicating that the numbers of channels in the data are '1 '.

    I use c#:

    Task m_TaskHandle = new Task();
    
    string sChannelsList = "Dev2/ao21:23";
    
    m_TaskHandle.AOChannels.CreateVoltageChannel(
    
    sChannelsList,
    
    "", 0, 5, AOVoltageUnits.Volts );
    
    int iNumberOfSamples = 4;
    
    double dSamplingFrequency = 1000;
    
    m_TaskHandle.Timing.ConfigureSampleClock("",
    
    dSamplingFrequency,
    
    SampleClockActiveEdge.Rising,
    
    SampleQuantityMode.ContinuousSamples,
    
    iNumberOfSamples /* Only relevant if mode is FiniteSamples */);
    
    // Data code is heredouble[] adSampleBuffer;// array values removed from this code snippet (here i have function that generates data)// array size is: num_of_samples * total_channels (in this case 4 * 3)
    
    AnalogSingleChannelWriter ChanWriter = new AnalogSingleChannelWriter(m_TaskHandle.Stream);
    
    ChanWriter.WriteMultiSample(false, adSampleBuffer);
    
    m_TaskHandle.Start();
    

    Not sure I'm I missing, how the MSTDIO determines the "number of data channels", I receive as an exception, it is always equal to 1.

    would appricate to help.

    Thank you.

    Hi idanbis,

    As the snippet you posted, you can create more than one channel using the ao21:23 range. That said, you should use AnalogMultiChannelWriter to configure your write instead of AnalogSingleChannelWriter operation.

    To write using AnalogMultiChannelWriter::WriteMultiSample (boolean, double, you must know the data you want to write must be stored in a 2D array.) Each element in the first dimension of the array corresponds to a channel in the task, while each item in the second dimension, to a sample of write on its channel. For example, that:

    Double [,] data = new double [numChannels, numSamplesPerChannel];

    Then:

    data [0, 0... numSamplesPerChannel]; It is the set of all samples in the first string (ao21 in your code).

    I hope that was helpful. Let me know if I left any doubt remaining.

    Best regards

    Anzurio

  • Custom scale does not work in the task of the accelerometer

    I use a NI 9234 to measure acceleration. In the task of the acceleration, I set the sensitivity 1000 mV/g, and I try to use a custom scale to correct the actual sensitivity of the accelerometer (~10mV/g). The excitement is the internal value and 2mA. The input is AC coupled. When I run the task, the scale has no effect on the output values. With 1 G asked the accelerometer, the output remains ~.014G(pk) as a custom scale is used or not. This is normal behavior for a task of accelerometer?

    LabVIEW 2009 SP1

    NOR-DAQ v9.1.1


  • Why do write can not be performed because the number of data channels does not match number of channels in the task.

    Possible reasons:

    Scripture cannot be performed because the number of data channels does not match number of channels in the task.

    When writing, provide data for all channels in the task. You can also change the task so that it contains the same number of channels as the written data.

    Number of job channels: 8
    Number of data channels: 1

    Lama says:

    The DAQmx vi writing gives me the error. If I run a single channel, isn't a problem. Multichannel gives me error.

    You are funny! Why tie yourself to work VI (single channel) instead of one that gives you errors (multichannel)?

    (If your car does not work, you bring car your wives to the mechanic, right!)

    What is the exact text in the multichannel 'physical channels' when you do the AO control?

    Lama says:

    I did a sequence to ensure that each function has been run in the correct order. Wouldn't a race condition.

    All you have to do is wire the 'start of task' error at the entrance of error of the DAQ assistant and then back to 'stop task' and things will run in order. Guaranteed! Think the stream! Everything else can run in parallel or the order is irrelevant.

    First convert the sequence stacked to a sequence of plate, remove the flat sequence and add the mentioned son. Now, do a "cleaning pattern.

    A when stacked with the inhabitants of the sequence is one of the worst construction you can possibly do. It makes the code difficult to follow, impossible to maintain, difficult to debug.

  • Custom event is not captured by the Task Scheduler and unable to trigger by e-mail for the event

    Hello world

    We have installed the 9.0 table in our windows 2008 R2 server and Scheduler tasks to send if you find error occurred for the application in it. That's why we created SMTP inside. First, we have implemented the Task Scheduler and generate an error in the application of the table and run the task manually and we receive by e-mail. But when we go for automation by the custom event. The steps below that I follow:

    1. click the Start button, and then select administrative tools > Task Scheduler.

    2. click on the task of creating in the Actions pane on the right.

    3. in the dialog box create a task in the name text box, type a name for the task and provide a description if you want.

    4. in the section security options, select run whether user is logged in or not.

    5. click on the triggers tab, and then click the new button.

    6 to start the task drop-down list, select an event.

    7. in the settings section, select custom and click the new event filter.

    8. for the event level, select the error box.

    9. selection of the Source, in the event source drop-down list, select the table server checkbox.

    10. click OK to close the new dialog box even filter and then click OK again to close the new trigger dialog box. The event trigger is now configured.

    11. in the dialog box create a new task, click the Actions tab and click the new button.

    12. in the Action new dialog box, in the drop Action, select send e-mail.

    13. under the settings section, fill in the form as required, including the SMTP server.

    Note: It is necessary to enter the valid e-mail addresses in the From and to text boxes.

    14. click OK to close the new dialog Action.

    15. click OK to close the dialog box create a task and finish configuring e-mail alert.

    If please see this and feel free to contact me if you have any information.

    Concerning

    Valerie

    Mob: 469 345 3625

    This issue is beyond the scope of this site (for consumers) and to be sure, you get the best (and fastest) reply, we have to ask either on Technet (for IT Pro) or MSDN (for developers)
    *
  • How to get the name and number of the procedure parameter list or a function?

    I stated the procedure described in the package

    If I want to get the number and the name of the parameter list, so how do I it

    I don't have I her name with the package.

    create or replace package demoApp is

    PROCEDURE insert_data (p_fname IN VARCHAR2,

    p_lname IN VARCHAR2,

    p_address IN VARCHAR2,

    p_cellno IN VARCHAR2,

    p_email IN varchar2);

    end demoApp;

    create or replace package demoApp body is

    PROCEDURE insert_data (p_fname IN VARCHAR2,

    p_lname IN VARCHAR2,

    p_address IN VARCHAR2,

    p_cellno IN VARCHAR2,

    p_email IN varchar2) IS

    EmpID number;

    BEGIN

    Select nvl (max (emp1.empid), 0) + 1 in EMP1 empid;

    INSERT INTO VALUES EMP1 (empid, p_fname, p_lname, p_address, p_cellno, p_email);

    EXCEPTION

    WHILE OTHERS THEN

    raise_application_error (-20001,' insert the problem ' |) SQLERRM);

    END;

    end demoApp;

    -----------------

    I want to get the name of the parameter and the number of use of stroredrprocedure ""demoApp.insert_data " "

    Select *.

    of all_arguments

    where package_name = 'DEMOAPP.

    and object_name = 'INSERT_DATA.

  • What is the phone number for the Adobe Customer Service

    What is the phone number for the Adobe Customer Service

    800-833-6687 (the only one from 05:00 - 19:00 PST, Monday to Friday day US).

    To the link below, click on the still need help? option in the blue box below and choose the option to chat or by phone...

    Make sure that you are logged on the Adobe site, having cookies enabled, clearing your cookie cache.  If it fails to connect, try to use another browser.

    Creative cloud support (all creative cloud customer service problems)

    http://helpx.Adobe.com/x-productkb/global/service-CCM.html ( http://adobe.ly/19llvMN )

  • I am trying to retrieve a serial number of the CS6 Adobe Design Standard product, that I bought, but when I fill the order fulfillment form in the 'Adobe Support Customer Portal', one of two things will happen. Either my proof of eligibility isn't uploa

    I am trying to retrieve a serial number of the CS6 Adobe Design Standard product, that I bought, but when I fill the order fulfillment form in the 'Adobe Support Customer Portal', one of two things will happen. Either my proof of eligibility will not be downloaded and then sometimes the 413 error indicating "header length too large." How to do this?

    remove the cookies from the adobe.com site or use another browser.

  • Help! -What creation customer I get this ERROR "To provide a positive whole number for the amount of the minimum balance customer or per cent balance amount overdue type is amount or percentage respectively."

    What creation customer I get this ERROR "To provide a positive integer for the customer minimum balance amount or percent when the balance amount overdue type is amount or percentage respectively."

    I tried troubleshooting when I saw the other post and created a new class of customer profile, but still get an error, even if I created another profile as below and existing it attached to another customer that has worked, but when I tried to create a new customer it still gives me the error. I use Oracle Applications R12.1.1


    Steps I followed to create a new customer profile

    = Make sure that the new class of customer profile that allows you to create is in the active state. Cross check the steps below when you define a class Profile of the client... e.g. name: by DEFAULT (and active)

    (* 1) profile of class tab :*

    ) a FWD billing balance: not enabled

    (b) billing-> tax print (summary by name of tax), consolidation of rule (DEFAULT)

    (c) define the conditions according to your requirement, allow the delivery & terms of substitution

    (d) Dunning set according to your requirement,

    (e) filled in info collectors according to your requirement of credit check enabled...

    (f) reception-> auto cash rule defined as 'Standard '...

    *2) Load profile * ended it according to requirement

    *3) Amounts class profile* for example say currency defined as 'USD '.

    (a) credit limit: 100000

    (b) limits of credit order: 100000

    (c) minimum amount: 1.00

    (d) statement amount min: 1.00

    (e) do not put any value in the type of exchange rate (for example, monthly, Plan etc...)

    (f) minimum customer balance: Amount-> value: 5.00

    (g) minimum balance Bill: Amount-> value: 5.00

    (h) right to minimum per invoice: 1, the maximum charge per invoice: 100 under the interest Charge

    (i) Reference Type as a set rate, value: 10

    (j) you can avoid using the penalties for now...

    Step - 2_ one) open a customer... * go to Bill the site details *-> click on the profile tab-> under class profile field please include new profile class that is created by you (for example, by DEFAULT). (b) go in the sizes tab profile-> Click (Show) on currencies USD-> check the establishment here as well, I could see it.

    When I tried to create a new customer using the new profile, it's repeating the same mistake. Help, please.

    Thank you for your reply Emmanuel.

    Sorry could not inform earlier, I tried at first with my amount of class XX profile newly created for all currencies. But he has not solved.

    When I changed the default profile for all the currencies class. It is resolved.

  • R1: tcAPIException: duplicate the element of planning for a task that is not multiple.

    Hello

    I am struggling with the next task:

    I have to ensure that an account exists for a given resource. I have available with la.tcUserOperationsIntf.provisionObject ().

    I created a createUser task to create the account.

    The task code checks to see if it is already matching account.

    If no account does exist, is created in a disabled state, and the State of the object of the IOM account is set to "Disabled" through return code of task mapping.

    If it exists, it is "related" to the account of the IOM.

    The problem is that if the existing account is enabled, I have to change account either IOM "Enabled" status.

    To implement this (thank you, Kevin Pinski https://forums.oracle.com/thread/2564011)) I created an additional task 'Switch' which is triggered by a special task return code. This task is always successful, and his only side effect is the status of being 'Enabled '.

    I'm getting the exception "Duplicate calendar item for a task that does not allow for multiple" permanently:

    This is the stack trace:

    Thor.API.Exceptions.tcAPIException: Duplicate the element of planning for a task which does not multiples. \

    at com.thortech.xl.ejb.beansimpl.tcUserOperationsBean.provisionObject (tcUserOperationsBean.java:2925).

    at com.thortech.xl.ejb.beansimpl.tcUserOperationsBean.provisionObject (tcUserOperationsBean.java:2666).

    at Thor.API.Operations.tcUserOperationsIntfEJB.provisionObjectx (unknown Source).

    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method).

    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:57).

    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43).

    at java.lang.reflect.Method.invoke (Method.java:601).

    at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection (AopUtils.java:310).

    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint (ReflectiveMethodInvocation.java:182).

    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed (ReflectiveMethodInvocation.java:149).

    .. .skipped

    at Thor.API.Operations.tcUserOperationsIntfDelegate.provisionObject (unknown Source).

    ... jumped

    What I did wrong?

    Kind regards

    Vladimir

    Solved. Just forgot to mark the additional task as 'Conditional', then the system has tried to run twice.

  • Is it possible to access the task flow parameter in the EOImpl.create () method?

    Hello

    Is it possible to access the task flow parameter in the EOImpl.create () method? In the affirmative, please let me know how to access.
    FYI... I have a CreateInsert < xxx > activity in the workflow, which, I believe, called the EOImpl.create () method internally. During the creation of the entity, I want to assign a default value based on the parameter of workflow.

    Thank you

    A way to pass parameters from workflow for the model is during the initialization of the workflow. To do this, you can create a prepare() method in the Module of your Application and call it from the workflow. By defining this method by default in your workflow, it will be called every time that the workflow starts. You can pass any task rate desired as the arguments of a function prepare() method. In the prepare() method, save the workflow of the values for parameters in the transient variables EO or VO. These variables will then be accessible in the create() methods.

  • Scripture cannot be performed because the number of data channels does not match number of channels in the task.

    My VI works as a motion detector.  Whenever the motion detector is activated, the led lights up and a beep is heard (a switch will exercise my motion sensor).  Once all the lights are on, the system reset is supposed to light up, and then the other three lights turn off back waiting to be activated once more.  My attachment saved as "sensor project", I have the VI working with data acquisition by implementing a case of random number, and the VI works here to give a demonstration of what I'm trying to work in favor. Any information would be greatly appreciated.

    You have some problems of logic and data flow.

    Once all three loops stop sensors, all outputs are necessarily true, then the case and a compound bow structure in the loop (reset) next is useless. Because the boolean in the fourth loop ending is immediately true, the loop to stop and not care about the State of the reset button. Maybe you should connect the termination condition to the wire going to the system reset light instead. Since it is also a polling loop, it needs a small wait. Once you press reset, the VI full and stops. (Do not use the continuous operation mode!).

    Solution: Create a state machine with a single outer loop. You have 4 x code too!

Maybe you are looking for

  • Re: C855-1EL Satellite will not start Windows system

    I have had trouble with my Satellite C855 1EL lately and now cannot even start Windows.The black screen reads the following: Intel UNDI, PXE - 2.1 (build 083) Copyright (C) 1997-2000 Intel CorporationThis product is covered by one or more of the foll

  • The lightscribe software

    Good evening boys. I want to know what happened the Lightscribe software, because wanting to improve, I found the writing: this site is no longer active. I have windows vista family 32-bit premium and microsoft security essential such as the antiviru

  • Satellite 300-214: SD-R2002 drive recognition failure

    Using a 300-214 Satellite, which has developed a problem where it won't recognize anything in the modular Bay.It wasn't a problem, when I could select RUN and view the content.Now the SD R2002 double DVD/CD even cannot be run from this.It starts to s

  • Outlook Express mail is no longer can be transmitted to another account

    Verizon is my server for Outlook Express. I have had my emails transferred from Outlook Express to an account hotmail for months. Transfer somehow arrested last month. I tried to re - edit my information to redirect email Outlook Express for hotmail,

  • How to set the vertical spacing of the field of VerticalFieldManger

    This really that hard (newb here). I have a number of fields customized in an optimization of resources; It seems to be a default value for the spacing between fields and for the life of me, I can't understand how to reduce this spacing.