The external task - prepare method - encode - decode

I ecrire write code in the prepare method, see thread:

How to call a java application in the middle of the process
Papi to work with processes using
How to call a java application in the middle of the process

If the error is caused by the decoding and the encodeing the URL, please tell me how to solve this problem.

Thank you very much.

The following code snippet
-------------------code-----------------------------------------------
getInstance package;

Import fuego.lang.DynamicObject;

Import fuego.papi.Arguments;
Import fuego.papi.CommunicationException;
Import fuego.papi.InstanceInfo;
Import fuego.papi.ProcessService;
Import fuego.papi.ProcessServiceSession;
Import fuego.papi.OperationException;

to import java.util.Iterator;
import java.util.Map;
import java.util.Properties;

public class prepare {}
{} public prepare()
}

Public Shared Sub main (String [] args) {}
prepare prepare = new prepare();

Properties configuration = new Properties ();
configuration.setProperty (ProcessService.DIRECTORY_ID, 'default');
configuration.setProperty (ProcessService.DIRECTORY_PROPERTIES_FILE, "D:\\BPM_HOME_standalone\\webapps\\papiws\\WEB-INF\\directory.xml");
configuration.setProperty (ProcessService.WORKING_FOLDER, "/ tmp" "");
System.out.println("1111111111111");

Arguments argumentsResult = Arguments.create ();
String taskIn = '0 '.
Activity of channel = "/InvokeJavaProcess#Default-1.0/InteractiveJava"; both are very well
Activity of channel = "InteractiveJava"; both are very well

String instanceId = ' / InvokeJavaProcess#Default-1.0/203/0 ';

try {}

ProcessService processService = ProcessService.create (setting);

ProcessServiceSession session = processService.createSession ("jcooper", "welcome1', 'host');
System.out.println ("instanceID 33333 =" + instanceId);

argumentsResult = session.activityPrepare (activity, instanceId, Arguments.create ()); error begins here

System.out.println("444444444");
DynamicObject obj = argumentsResult.getDynamicObject ();

Map fieldMaps = obj.asFieldsMap ();

for (iterator Iterator < String > = fieldMaps.keySet () .iterator (); iterator.hasNext ();) {

Key of type string = iterator.next ();
System.out.println ("key:" + obj.getField (key) + key "value");

DynamicObject obj2 = argumentsResult.getDynamicObject ();
Map fieldMaps2 = obj2.asFieldsMap ();
for (Iterator < String > it = fieldMaps2.keySet () .iterator (); it.hasNext ();) {
System.out.println ("key:" + key + "value:" + obj2.getField (key));
}

}

session. Close();
} catch (OperationException e) {}
e.printStackTrace ();
}





}
}


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

But I get an error as follows:

-------------------error---------------------------------------
E:\Jdeveloper10131_20090318\jdk\bin\javaw.exe-client - classpath E:\Jdeveloper10131_20090318\jdev\mywork\Java_be_invoked\getInstance\classes;D:\BPM_HOME_standalone\client\papi\lib\fuegopapi-client.jar getinstance.prepare
1111111111111
Connector creation [fuego:SQL]
Creation of ProcessService with the id "oracle/2009-03-31 18:08:47 + 08:00 '.»
File local/tmp\system\Schema3387192-1796619082\catalogs found.
Loading of the catalogues of local folder: / tmp\system\Schema3387192-1796619082\catalogs
1 pots found locally.
Local successfully jar '126' loaded.
[CatalogMgrCache] =.
Registration CatalogMgr [oracle/2009-03-31 18:08:47 + 08:00]... CatalogManagerCache 14949315:
Managers:
{}
Counters:
{}
[CatalogMgrCache] =.
CatalogMgr [oracle/2009-03-31 18:08:47 + 08:00] RECORDED! CatalogManagerCache 14949315:
Managers:
{18:08:47+08:00=fuego.util.LocalCatalogManager@1dacccc oracle/2009-03-31}
Counters:
{}
ProcessService ' oracle/2009-03-31 18:08:47 + 08:00 ' created successfully.
33333 instanceID=/InvokeJavaProcess#Default-1.0/203/0
Tolerance of inaccessible engine (seconds):
default: 0
to serve: 0
This customer papi sets cache not exceptions that involve that an engine could not be reached.
Adding a local catalog for project: 124
[CatalogLoaderMgrCache] =.
CatalogClassLoader [oracle/2009-03-31 18:08:47 + 08:00 - 124] added to the cache

ClassLoader catalogue card:
{oracle/2009-03-31 18:08:47 + 08:00-124 = CatalogClassLoader (FuegoObjectCatalog (catalogIn: 124, directoryId: oracle/2009-03-31 18:08:47 + 08:00))}))}

Cache Catalog Manager:
CatalogManagerCache 14949315:
Managers:
{18:08:47+08:00=fuego.util.LocalCatalogManager@1dacccc oracle/2009-03-31}
Counters:
{oracle/2009-03-31 18:08:47 + 08:00 = 1}
fuego.papi.exception.TaskFailedException: task '0' activity ' / InvokeJavaProcess # default - 1.0 / Interactive [InteractiveJava]' for example ' / InvokeJavaProcess#Default-1.0/203/0' cannot be run successfully. The task failed when executing method 'PREPARE %. "
at fuego.papi.exception.TaskFailedException.create(TaskFailedException.java:57)
at fuego.server.AbstractProcessBean.createTaskFailedException(AbstractProcessBean.java:3572)
at fuego.fengine.FEngineProcessBean.createTaskFailedException(FEngineProcessBean.java:398)
at fuego.server.AbstractProcessBean.runTask(AbstractProcessBean.java:3193)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (unknown Source)
at java.lang.reflect.Method.invoke (unknown Source)
at fuego.lang.JavaClass.invokeMethod(JavaClass.java:1410)
at fuego.lang.JavaObject.invoke(JavaObject.java:227)
at fuego.component.Message.process(Message.java:585)
at fuego.component.ExecutionThread.processMessage(ExecutionThread.java:780)
at fuego.component.ExecutionThread.processBatch(ExecutionThread.java:755)
at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:142)
at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:134)
at fuego.fengine.FEngineProcessBean.processBatch(FEngineProcessBean.java:244)
at fuego.component.ExecutionThread.work(ExecutionThread.java:839)
at fuego.component.ExecutionThread.run(ExecutionThread.java:408)
at fuego.component.CustomExecution.next(CustomExecution.java:176)
at fuego.papi.impl.rmi.RMIExecution.next(RMIExecution.java:109)
at fuego.papi.impl.ProcessInstanceOperation.prepareExternalActivity(ProcessInstanceOperation.java:695)
at fuego.papi.impl.ProcessServiceSessionImpl.activityPrepare(ProcessServiceSessionImpl.java:1420)
at fuego.papi.impl.ProcessServiceSessionImpl.activityPrepare(ProcessServiceSessionImpl.java:1414)
at getinstance.prepare.main(prepare.java:43)
Caused by: fuego.lang.ComponentExecutionException: the "CIL_interactiveJavaPrepare" class method "oracle. InvokeJavaProcess.Default_1_0.Instance' cannot be run successfully.
at fuego.component.ExecutionThreadContext.invokeMethod(ExecutionThreadContext.java:519)
at fuego.component.ExecutionThreadContext.invokeMethod(ExecutionThreadContext.java:273)
at fuego.fengine.FEEngineExecutionContext.invokeMethodAsCil(FEEngineExecutionContext.java:219)
at fuego.server.execution.EngineExecutionContext.runCil(EngineExecutionContext.java:1280)
at fuego.server.execution.TaskExecution.invoke(TaskExecution.java:401)
at fuego.server.execution.InteractiveNormalCilExecution.invoke(InteractiveNormalCilExecution.java:425)
at fuego.server.execution.TaskExecution.executeCIL(TaskExecution.java:513)
at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:697)
at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:657)
at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:154)
at fuego.server.execution.microactivity.InteractiveMicroActivity.executeNormalCil(InteractiveMicroActivity.java:501)
at fuego.server.execution.microactivity.InteractiveMicroActivity.executeItem(InteractiveMicroActivity.java:454)
at fuego.server.execution.microactivity.InteractiveMicroActivity.execute(InteractiveMicroActivity.java:104)
to fuego.server.AbstractProcessBean$ 48.execute(AbstractProcessBean.java:3184)
to fuego.server.execution.DefaultEngineExecution$ AtomicExecutionTA.runTransaction (DefaultEngineExecution.java:304)
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.runTask(AbstractProcessBean.java:3188)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (unknown Source)
at java.lang.reflect.Method.invoke (unknown Source)
at fuego.lang.JavaClass.invokeMethod(JavaClass.java:1410)
at fuego.lang.JavaObject.invoke(JavaObject.java:227)
at fuego.component.Message.process(Message.java:585)
at fuego.component.ExecutionThread.processMessage(ExecutionThread.java:780)
at fuego.component.ExecutionThread.processBatch(ExecutionThread.java:755)
at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:142)
at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:134)
at fuego.fengine.FEngineProcessBean.processBatch(FEngineProcessBean.java:244)
at fuego.component.ExecutionThread.work(ExecutionThread.java:839)
at fuego.component.ExecutionThread.run(ExecutionThread.java:408)
Caused by: java.lang.NullPointerException
at oracle. InvokeJavaProcess.Default_1_0.Instance.CIL_interactiveJavaPrepare (Instance.xcdl:1)
at oracle. InvokeJavaProcess.Default_1_0.Instance.CIL_interactiveJavaPrepare (Instance.xcdl)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (unknown Source)
at java.lang.reflect.Method.invoke (unknown Source)
at fuego.component.ExecutionThreadContext.invokeMethod(ExecutionThreadContext.java:512)
... 34 more
Process has finished with exit code 0.

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

The following is the only difference with the code of yours and mine, and it does not work for me.

fuego.papi.Arguments args = fuego.papi.Arguments.create ();
args = papisession.activityPrepare (activity, instanceId, args);

Note that I don't have another object to restultArgs you. Not sure if this should make a difference.
Second, the arguments that I have nothing in it. For you, there is an argument in this object, which is var1 = dyn. I guess that since there is no argument in your prepare method entry mode, this variable could not be transmitted to the prepareMethod. (Just a guess)

Here's my understanding:
prepareMethod is used to pass arguments of BPM for external application. So, you can define arguments of prepareMethod as arguments of mode 'out '. These arguments are defined in 'args' when you call "args = papisession.activityPrepare (activity, instanceId, args); The external application can then perform a treatment based on them and later call commit and go back a few arguments to BPM.

May be worth trying another

Tags: Fusion Middleware

Similar Questions

  • The execution of an external task with dynamic parameters

    The current scenario is that a job is running a process that will return an XML of records and their corresponding scores after going through a few search rules. Finally, these files will be returned to Siebel, but until this is done, we would like to run a XSL Transformation on them. We have developed an external executable that takes input and the output XML target files as arguments and applies the transformation.

    Logically speaking, Disqualification will have to write to an XML file, call the external task (pointing to the correct XML file as it may be several simultaneous research generating XMLs), wait for the task to complete, read the XML data, and then pass this information through the web service.

    As mentioned above, the biggest problem here would be the potential of many users at the same time research. Therefore, a Shared output THAT XML is not a workable solution.

    How dynamic arguments can be passed in writing to an XML file and the execution of an external task?

    It depends on.

    In general, we use attributes of the entry on the message to change the behavior of a service in real time. The match of entry score threshold is an example of this - the process uses this attribute do not return the results below. Similarly, we use attributes in the address for service of cleaning that control whether to change the address of entry. Your customer may have a logic that defines the entry attribute values - in the case of Siebel, the threshold value is a good example of what it can be configured in Siebel and defined by the connector for Siebel Disqualification.

    Then there are options outsourced in a process of the Disqualification. These can vary for different works the same task using a profile or command-line... run the limitation of which is that the evolution of the option for a given service means stopping and restarting, but it allows things such as the same configuration to have different behaviors on different series, or by operating on different machines.

    I recommend you to read about outsourcing in the online help. Most of the settings configuration of the Disqualification can be outsourced and substituted at execution - a powerful feature that can and has been used to solve a variety of problems.

    Kind regards

    Mike

  • Removal of the external loaded swf does not decrease memory

    I'm developing a desktop application using flash builder 4.7, where I am loading swf external swf main, but after his withdrawal, it remains in the process (check in the Task Manager. os: windows 7), process decreases a little, but not as much as it should be. so, whenever I insert again and remove, process increases and after multiple loading, application crash down. I'm removing it like this

    if (_loader.numChildren>0)

         _loader.removeChildren(0,_loader.numChildren-1);

    _loader.unload();

    _loader.stopAllMovieClips();

    _loader.unloadAndStop(true);

    _loader.loaderInfo.removeEventListener(Event.COMPLETE, onComplete);

    this.removeChild(_loader);

    _loader = null;

    I have added custom destroy the external inside swf method and started calling him. I was almost everything, remove (almost say because it might be something I missed, because it's huge project) but still the long process.

    That I created empty swf (new project without code and nothing in it) and tried to integrate and to see what is happening. It was just the same...

    Then I thought again Air SDK may have solved this problem, so I've updated SDK for 19.0.0.207 currently more recent, but still nothing, even if the process now increases above.

    I think that it comes to Flash gc. One of the solutions is to have one and only instance of swf external and removeChild and addChild it whenever you need. It is a bad way to do it. Process will not increase all the time, but in my case I have many SWFs to load and it will slow down my request for computers of RAM low resources it could cause the crash and it is bad to have unnecessary things running in the background process

    so any suggestions are welcome

    No need to stop the video clips and remove... use unloadAndStop() and it will all stop and unload the file... as it is not possible to call the content of charger (clips) stop after the unload method, it is already removed... So, try to use only 3 lines only to unload the file.

  • Disqualification external tasks

    Hello

    I have a stored procedure, and I am the appellant through a Windows File batch (.bat) in the location "edq\oedq.local.home\commandarea".

    The procedure is completed successfully, but the external task is not getting out even after that stored procedure runs correctly. We have to manually cancel.

    Because the command line is not automatically get closed. Is there any solution to get out of the external Disqualification task task?

    Appreciate your input on this.

    Untitled.jpg

    Thank you

    Anand R

    As we've said before, you must add an EXIT statement at the end of your script. It works for me if you do this:

    ...

    end loop;

    END;

    /

    EXIT;

    /

  • OEDQ 9.0.8 - external task - execution of Shell Script

    Hello Disqualification Experts.

    I am looking for your expert advise on this... With the help of the external task I am able to call the .bat (batchfiles) but I'm not able to run .ksh (UNIX shell script file), attached is the example script I am trying to run via the external task.

    File name: testfile.ksh

    #! / usr/bin/ksh

    Set - x

    $ORACLE_HOME/bin/sqlplus - s edq_test/edqtest@edqd < < EOF

    WHENEVER SQLERROR EXIT SQL. SQLCODE

    EXECUTE SP_TRUNCATE_TABLE ('ABC_OWN', 'ABC_TABLE');

    COMMIT;

    quit smoking;

    EXPRESSIONS OF FOLKLORE

    output

    Disqualification-> Manager-> External tasks-> Creates a new task called TestTask who has the below...

    Command: testfile.ksh

    Working directory: \opt\local\software\edq\config\commandarea

    Get this error Message:

    The external task (Execute testfile.ksh) failed because of the following exception: cannot run program "/ opt/local/software/edq/config/commandarea/testfile.ksh": error = 2. No such file or directory

    Thanks in advance!

    BG

    Dear Richard, thank you for your prompt response.

    # / bin/bash helped and I also have to export the ORACLE_HOME in the script, somehow the $ORACLE_HOME is not recognized by the external task.

    Example of Script working:

    #! / bin/bash

    export ORACLE_HOME=/ora02/oracle/product/11.2.0.4/client

    $ORACLE_HOME/bin/sqlplus - s edq_test/edqtest@edqdev<>

    WHENEVER SQLERROR EXIT SQL. SQLCODE

    EXECUTE SP_TRUNCATE_TABLE ('ABC_SCHEMA', 'ABC_TABLE');

    COMMIT;

    QUIT SMOKING;

    EXPRESSIONS OF FOLKLORE

    output

    Thanks for your help!

    BG

  • How to decode the received imagePath getPicture method in Oracle MAF?

    Hi all

    I have a use case in which I have to perform following tasks:

    1. take a picture using the MAF.

    2. save the encoded image in sqlite database path.

    3. then decode this path of the image and then convert the image to a byte [], so that I can send it to Oracle MCS storage.

    I put the parameter encodingType getPicture on "1". I'm stuck at the point where I have to decode the image path returned by the getPicture method.

    How can I do so?

    Kind regards

    Gurkeerat Singh

    Hello

    Thanks for repIy. I used the following code and it worked.

    Byte [] imageData = Base64.decodeBase64 (insertSR.getSrAttachment () .getAttachmentPath () .substring (contentStartIndex));

    and added a jar "Commons-Codec - 1.9.jar.

    Kind regards

    Gurkeerat Singh

  • I would like to know how to manage the ASN.1 encoding/decoding in LabView?

    I would like to know how to manage the ASN.1 encoding/decoding in LabView?

    Hello J,

    in the example given here , it looks like a format simple bytestream...

    You must read the byte stream, get the first and the second byte to decode the data type and length and then read & catalogued according to number of bytes. And then read 2 bytes and so on...

    Encoding will work the same but in reverse

  • Run task of the external procedure vbs

    Hi all

    I have a little vbs script that is designed to take some aspects of demand task from an application and write them to a folder specified in xml format and adding it to the server console and the task of the external procedure.

    However, when the task runs, it always of errors with

    Performance: "C:\Program Files (x 86) \VMware\Service Manager\Dev\TestXML.vbs.
    System.ComponentModel.Win32Exception ERROR
    Source: System
    Message: The specified executable is not a valid Win32 application.

    I tried to force this option to use cscript.exe and wscript.exe system32 and syswow64, but when I put the command to

    "' C:\Program Files (x 86) C:\Windows\SysWOW64\wscript.exe \VMware\Service Manager\Dev\TestXML.vbs"

    I have another error

    "System.ComponentModel.Win32Exception ERROR".
    Source: System
    "Message: the system cannot find the file specified."

    Does anyone have any ideas how I could get this race?  I played with writing a short .bat to run cscript and the vbs but do not see how the vbs can then be passed to the query parameters if it is run in a batch file.

    Any ideas would be massivey appreciated!

    Just a raw idea.

    What happens if... as command, you set just wscript.exe (or cscript.exe) and vbs file you specify as one of the settings in the task of external procedure (maybe a double quotes).

  • Best method to import the external drive?

    I have a LaCie 1 t and you want to know the best method to get these images in LR. The default values are: 'Add' and 'NewPhotos' to 'Moncatalogue '.

    I think I may have more than one catalog and do not know how to combine them. It is advisable to have a single catalog?

    Thanks in advance,

    Mr. Mayor

    There is no "best" method, there are methods that work for you and the methods that do not work for you.

    If the files are on the external hard drive, then 'Add' certainly would work, he leaves photographing in existing records.

    In almost all situations, you want to use a single catalog. (The only situations where you may want several catalogues are if the object of the catalog it is completely incompatible with the purpose of the catalogue 2, for example, business and personal).

    You can combine catalogs by opening one and then use file-> import from another catalog and points to the catalog on the other.

  • How to use the external encoder

    Can someone tell me please how to open the external encoder to be able to copy and paste links in there to use my web cam?

    Thank you

    Find a forum for some product that this implies and post your question there.

    Here is a link to a page that provides links to all of the Adobe forums...

    Forum links page:
    ----------------

    https://forums.Adobe.com/welcome

  • How to pass the query parameters for the task "execute the external command"?

    Hello

    We are on the VSM 9 R8. Although VSM offers plenty of connectors, however we must incorporate VSM with other 3rd party applications using powershell, protocols SOAP.

    I do this via the task run the external procedure. However, I am only able to send standard variables outside the tasks for example [request: REQUEST_DESC]. This task can not pass my custom settings which I take on my portal to the user for example, currency (Datacae id is CURR).

    All the world is facing this limitation before?

    Concerning

    Ankit

    It's all exactley. Although just with the help of [EXTFLDV_500xxx] would give the value of the field of the task at hand. You could use [REQUEST: EXTFLDV_500xxx]. I prefer [REQUEST_NO$ CR_REQUEST.] EXTFLDV_500xxx]

  • How to catch the end of an external task?

    Hello

    How to catch the end of an external task?
    OS: Windows 2003
    DB: 10.2.0.1

    The code I wrote will run forever:
    declare
       d date;
       n number;
       -- and more
    begin
        d := sysdate;
        dbms_scheduler.create_job(
          job_name => c_job,
          job_type => 'executable',
          number_of_arguments  => 14,
          job_action => c_cmd,
          enabled => false,
          auto_drop => true
        );
        dbms_scheduler.set_job_argument_value(c_job,1,'/c');
        dbms_scheduler.set_job_argument_value(c_job,2,c_command);
        dbms_scheduler.set_job_argument_value(c_job,3,c_pw);
        dbms_scheduler.set_job_argument_value(c_job,4,c_pw_val);
        dbms_scheduler.set_job_argument_value(c_job,5,c_port);
        dbms_scheduler.set_job_argument_value(c_job,6,c_port_val);
        dbms_scheduler.set_job_argument_value(c_job,7,c_key);
        dbms_scheduler.set_job_argument_value(c_job,8,c_key_val);
        dbms_scheduler.set_job_argument_value(c_job,9,c_agent);
        dbms_scheduler.set_job_argument_value(c_job,10,c_batch);
        dbms_scheduler.set_job_argument_value(c_job,11,c_source);
        dbms_scheduler.set_job_argument_value(c_job,12,c_dest);
        dbms_scheduler.set_job_argument_value(c_job,13,c_log);
        dbms_scheduler.set_job_argument_value(c_job,14,c_yes);
        dbms_scheduler.enable(c_job);
     
        -- Job started, waiting...
        loop
          select count(1)
          into n
          from user_scheduler_job_run_details t
          where job_name = c_job and
                t.log_date >= d;
          exit when n > 0;
          dbms_lock.sleep(1);
        end loop;
     
    end;
    The work ends in fact, user_scheduler_job_run_details is updated (if you run the select statement in the loop in another session, it returns 1), but the selection running into the loop will always return 0.
    Any help is appreciated.

    Kind regards
    Lmocsi

    Hello

    It's strange, maybe you can try to use the timestamp type rather type date and with the help of an offset in the case where the work already finished for example d = systimestamp - second interval '1'

    Another thing to watch is if you compare the dates in the same time zone, otherwise you must ensure that all sessions use the same time zone (setting the default_timezone attribute Planner can help).

    Hope this helps,
    Ravi.

  • External tasks

    I am trying to use the type of implementation 'External' of interactive activities, but I have some difficulty. I do not understand how the customer, also I don't know how the BPM engine knows who to call.

    Someone at - it an example of a project that can send me?

    Rodrigo Zuchetto

    Hi Rodrigo

    You can follow the following steps

    BPM
    1. in the title of the external resource, create a new resource of type "Server Configuration". Specify your host, port and path of servlet/jsp.
    2. for the main task of the interactive activities, choose the type of implementation as "external".
    3. create a preparation method and validation. Prepare method will be called from your servlet, and you can set arguments (like output args) which will be forwarded to your external java application of BPM
    4 validation method will be called from your java application, once you are done with the treatment. Here you can set args (as a starter). These args will be fixed in java app when he calls this method commit.

    In JavaApp
    1. for the servlet that you set in step 1 above, define a default handler and initialize a session of papi here.
    2. call activityPrepare on this papisession and get in on the variables passed to the step 3 above
    3. perform your treatment
    4. call activityCommit on the papisession and pass new parameters

    HTH

  • Error importing CSV files with "hidden" characters using the external Table

    Hi people

    Bit of a strange here.

    Well, we are accustomed to the use of the external Table method to load data from CSV files in the database, but a recent event presented us a problem.

    We have received some CSV files that "look like" regular CSV files, but Oracle will not load them.

    When we looked at the CSV using VIM on a UNIX machine, we saw the following characters 'hidden' between each regular character in the file.
    ^@
    If a string that looks like this when opened in Excel/Wordpad etc.
    "TEST","TEXT"
    Looks like this when exmained with VIM
    ^@"^@T^@E^@S^@T^@"^@,^@"^@T^@E^@X^@T^@"
    Has anyone encountered this before?

    Thank you very much

    Simon Gadd
    Oracle 11g 11.2.0.1.0

    Hi Simon,.

    ^ @ represents the ZERO character (0x00).
    So, most likely, you have a file encoded in Unicode.

    You need to specify the character set in the record specification (and if necessary the byte order mark), for example:

    CREATE TABLE ext_table
    (
      col1 VARCHAR2(10),
      col2 VARCHAR2(10)
    )
    ORGANIZATION EXTERNAL
    (
      TYPE ORACLE_LOADER
      DEFAULT DIRECTORY dump_dir
      ACCESS PARAMETERS
      (
       RECORDS DELIMITED BY '
    ' CHARACTERSET 'UTF16'
      FIELDS TERMINATED BY ','
      )
      LOCATION ('dump.csv')
    )
    REJECT LIMIT UNLIMITED;
    

    http://download.Oracle.com/docs/CD/E11882_01/server.112/e16536/et_params.htm#i1009499

  • activate the external clock

    Alrighty, I'm a total noob to LabView and others. I'm at the point where I don't even know if I know is relevant, so forgive if I give too much information and probably not enough.

    I've got:

    cDAQ-9174 chassis

    9422 module into the connector #2

    This 9422 module will be connected to a meter that will send a square wave. What I need is the frequency of the square wave. Problem is, I don't have any idea how to get it.

    I open a new .vi and use the DAQassist. From there I select entry counter and then I tried the frequencies and Edge Count.

    At the end of the day, either it usually gets me the following error message:

    Error-200284 occurred to...

    Possible reasons:
    Some or all of the requested samples are not yet acquired.

    I guess that one I did most of the research is the counting of edge. It is continuous samples because I need to monitor the flow rate at the time rather than only to count the edges of time 0 until I stop the VI. So there are different ways to treat this error include changing the timeout value, something to do with 'samples to read' and 'sample rate', and then that it seems to me that I have to do: since the buffered continuous one requires an external clock, which is specified in the tab "Advanced Timing" of the menu properties DAQassist I have a lot of things to choose from. It seems/I/SampleClock or/ao/SampleClock is the thing to choose, but then several Web pages continue to say to make sure that the external clock is actually "run", or any word in this sense. So I tell myself, my external clock isn't doing anything and that's why reading isn't acquire samples. But really, I'm just lost. Then...

    Question 1:

    Is what I'm working on the best/right way to go about doing this?

    Question 2:

    How can ensure me that this external clock done everything what it is supposed to do so that I can get samples still for edge counting?

    Well, my ignorance is exposed, please fire away. I have attached the .vi, although I don't think it will tell you anything other than I know how to click the mouse button when running LabView.

    County Board is time since you don't have a sample clock.  You can provide one from many sources, but in your case I suggest sticking to a task of frequency measurement I won't go into it now.

    The frequency could be time for a number of possible reasons:

    1. the external signal is not connected to the right Terminal (the default IS terminal your meter chosen if you not him have not overridden with a property DAQmx node which is not possible in the DAQ Assistant).  For the 9422:

    2. the signal may be connected to the right Terminal, but perhaps, it does not meet the specifications of the 9422 to be detected)<5V low,="" 11-60v="" high).=""  you="" can="" verify="" whether="" or="" not="" the="" signal="" is="" being="" detected="" using="" a="" test="" panel="" (counter="" edge="" counting="" to="" determine="" if="" the="" signal="" is="" present)="" in="" measurement="" and="" automation="">

    3 tasks of frequency are sampled off the input signal - so if the input signal does not switch when you start the program or if there is a long break (longer), you will receive the time-out error when the reading function blocks for more than your specified time-out.  You should be able to just 'manage' the time-out error so that if it happens you can report a frequency of 0, ignore the error and try to read it again.  There are also other approaches such as using events DAQmx or samples available to read to vote, but none of them are available through the DAQ Assistant (the idea is that you avoid making DAQmx Read blocking call until you know there are samples to read).

    Configure a task of frequency is a better option for you, because it will give more precise (although you can set a task of County of edge to behave similarly to a frequency measurement task, this is trickier and you can also use the DAQ assistant).  You can start out by setting 1 sample (on request) for the synchronization mode - this will return a single sample as soon as it is available.  If you put the DAQ Assistant, in a loop, you will get a new sample at each iteration (or if your input signal goes, the samples will stop coming in and you'll get time-out errors instead).  The downside is that you will not receive a sample on each side - entry task is reset by software and during this downtime between the samples will take no new data.  This should be good for the case of the use you described (the frequency of a continuous square wave periodically monitoring).

    So, make sure that the external signal conforms to the specifications of the 9422, and it is connected to the correct terminal (the PFI line which is equivalent to the DOOR of your meter by default).  If your external signal is less than 0.2 Hz (1 sample every 5 seconds) you will need to move away from the DAQ assistant, as it seems that it is not possible to set the timeout of read using the DAQ Assistant (surprisingly).  You might want to look in the API of DAQmx lower level anyway - here is a simple example to help you get started in the affirmative.  It's really not too complicated and once you get used to it will be less heavy than using the DAQ Assistant.

    Best regards

Maybe you are looking for

  • It is possible to sintonice fm radio on ipod classic 160 gb with an accessory?

    It is possible to sintonice fm radio on ipod classic 160 gb with an accessory?

  • GameSpy will stop will be my game works?

    Hello GameSpy will close may 31. Command and conquer generals and expansion (zero hour) are powered by Gamespy? I hope that no, really, I always like play online with it. the experience on it is much better then Gamerager and I hope that this game is

  • Nueva pregunta

    Porque el messaner windows me as hay a prolblema en mi eindows live conection

  • Drive hard partition

    Hello, I would like to create a decent size on my hard drive partition.  Disk Manager pays 75% of free space on the OS (C :).  But when I start the process of "shrink volume" (to create open space for my new partition), the dialog box shows ONLY 238

  • BlackBerry App PayPal App

    A PayPal application is available from today in the world classic BB BB, Q10 and Z10 only and only in the United States, United Kingdom and Australia (see CrackBerry). I have a classic BB to the United Kingdom I fit the profile. The PayPal app appear