Counter in BPEL

Hello,
I want to implement a counter in BPEL.
I have a String called CDConnect
First run of composite request, i want to append 001 to CDConnect. Like CDConnect001
Next run of request, it shoud be incremented by 1 so Like CDConnect002
Next run be Like CDConnect003
Next run CDConnect003
so, see the counter keeps incrementing from previous by 1 (it should not reset to Zero on next run). How can i achieve this ? what is simple / best way in Bpel
snippet welcome.
thx
dd

Please correct me SOA Gurus if I am wrong,
"I don't think there is any function inside a composite (web service), which can tell you how many times a service itself was called. "
I have a use case which can help you.
Usecase:
One BPEL process (BpelProcess1) invoking other BPEL process (BPELProcess2) and want to know how many times that BPELProcess2 was invoked.
Solution:
Inside BPELProcess1 put the Invoke activity (for BPELProcess2) inside a while loop and put a Assign activity after invoke
Inside the assign activity increment the counter variable "counter+1", now add an additional element inside the payload
of the BPELProcess2 and pass that counter value to that BPELProcess2.
-Yatan

Similar Messages

  • How to count JMS messages count using BPEL

    Hi All,
    Can you please let me know how to count , total numbers of messages while pooling or pushing the messages using BPEL.
    Thanks,
    Srinivas.

    What do you mean by total number of messages? That are dequeued by BPEL? Or that are in the queue?
    Is the BPEL process started if a message is dequeued? In that case you could just count the number of BPEL instances...
    Kind regards Lonneke

  • Segment SE - How to generate automatically for EDI_4010_850

    Hi,
    As part of EDI_4010_850 (PO) XSD, the segment SE is mandatory and has following two elements:
    SE01 - Element-96 (Total number of segments included in a transaction set, including ST and SE segments)
    SE01 - Element329
    In a scenario wherein, we are sending an XML file to B2B through BPEL Process and having B2B generate an 850 EDI file for us.
    Would like yo know do we have to count the number of segments for SE01 in BPEL process manually or is there a way to get it calculated automatically.
    Appreciate your help!
    Thanks
    Priyanka

    In your Mapper, assign SE01 with macro "#SegmentCount#", B2B will replace this macro with actual count.
    You can also count in BPEL and assign it to SE01

  • Looking to use BPEL Instance and counter inside of a transformation

    I'm trying to find a way to include the BPEL instance and a counter within a BPEL transformation to create a unique key.
    Example, picking up files with multiple lines and no unique keys, each file is processed as a unique BPEL instance (key 1), and would like to use the row number (of the file, but not specified in the file) as the second key.
    My process takes a file from a file adapter and loads it into a database adapter if that helps.
    Any ideas would be appreciated.

    We ended up finding a Node-set Function -> Position to return the position inside of the dataset.

  • Question regarding usage of "count" function in xsl in my bpel process

    Hi,
    Is it ok to use the "count" function in the xsl transformation activity in BPEL PM version is 10.1.2.0.2?
    Thanks a lot for your help.
    Thanks
    Ravi
    Message was edited by:
    user464609

    removed
    Message was edited by:
    Marc Kelderman

  • OnAlarm/wait thread count configuration in BPEL

    BPEL 10g, We have a com.oracle.bpel.expirationAgent.threadCount property to set the thread count for OnAlarm/wait. ORACLE_HOME/bpel/domain/DOMAIN_NAME/config/resources-quartz.properties.
    BPEL 11g, Can you please point me the configuration file to set the thread count for OnAlarm/wait. I could not find the resources-quartz.properties in SOA 11g.

    Have you been able to find the file or a similar properties location in 11g? I am also looking for it.

  • BPEL function to query the Element Name and get the count of elements

    Hi Guys,
    I have problem with the following, can you please help me out with this.
    Say i have an xml pay load:
    <ns1:sampleEBO>
                   <ns1:PhysicalLocation>
                   <ns1:propertis>
                        <ns1:filedType>12</ns1:filedType>
                             <ns1:filedType1>12</ns1:filedType1>
                             <ns1:filedType2>12</ns1:filedType2>
    <ns1:filedType3>12</ns1:filedType3>
                             <ns1:filedType4>12</ns1:filedType4>
                             <ns1:filedType5>12</ns1:filedType5>
    </ns1:properties>
    <ns1:propertis>
                        <ns1:filedType>12</ns1:filedType>
                             <ns1:filedType1>12</ns1:filedType1>
                             <ns1:filedType2>12</ns1:filedType2>
    <ns1:filedType3>12</ns1:filedType3>
                             <ns1:filedType4>12</ns1:filedType4>
                             <ns1:filedType5>12</ns1:filedType5>
                   </ns1:properties>
    <ns1:sampleEBO>
                   <ns1:PhysicalLocation>
    Here i want to retrive the Element name ( filedType,fieldType1,fieldType2......) using any BPEL function, not the value and also get the total number of elements in the each node ( <properties> ). If i am using the "count" function its returning 2 and it's counting the properties node not the elements in the properties node.
    So, can you please let me know of any function in BPEL which can do this ?
    Thanks,
    Krish

    you only want to use a default bpel function for this? not from within xsl?
    and the function should return an arraylist of elementnames i assume ?
                   <xsl:for-each select="//properties">
                        <xsl:for-each select="./*">
                             <xsl:value-of select="local-name()"/>
                             <xsl:choose>
                                  <xsl:when test="substring(local-name(),1,9) ='filedType' ">
                             </xsl:when>
                             </xsl:choose>
                        </xsl:for-each>
                   </xsl:for-each>
                   <count1><xsl:value-of select="count(//properties[1]/*)"/></count>
                   <count2><xsl:value-of select="count(//properties[2]/*)"/></count>the count can also be used in some for-each construction or from within your bpel flow itself (if you want to loop over there, instead of xsl)

  • BPEL assign count and node value from xml

    I have mapnames.xml in the project with nodes like this:
    <mapname>STATUS_DIMS_LOAD</mapname>
    <mapname>MOVEMENT_DIMS_LOAD</mapname>
    The xml of mapnames will be used for an input variable for a FlowN invoke.
    Trying to count the number of mapnames in the xml document and put in a variable.
    <assign name="getMapNamesN">
    <copy>
    <from expression= *"count(bpws:getVariableData('... ? " />*
    <to variable="FlowN_Dims_Count"/>
    </copy>
    </assign>
    Then use that in the FlowN
    <bpelx:flowN name="FlowN_Dims" N="bpws:getVariableData('Flow_Dims_Count')" indexVariable="Index">
    And then inside the FlowN, get the actual mapname using the index.
    <assign name="Assign_Dims">
    <copy>
    <from expression= *"bpws:getVariableData('... ? [',bwps:getVariableData('Index'),']') " />*
    <to variable="Invoke_Dims_InputVariable" part="InputParameters"
    query="/ns8:InputParameters/ns8:P_MAPNAME" />
    </copy>
    </assign>
    What is the syntax to
    1. Count the number of mapnames in the xml document?
    2. Use the FlowN index to assign the mapname to an input variable?

    That looked hopeful, but it did not show how to create the variables and I do not know the syntax for making an array variable.

  • Count of assigned Tasks + BPEL 10.1.3.3

    Hi,
    Is there any specific API to use to get the count of assigned tasks(e.g applications) in human task?
    Thanks

    Hi,
    Is there any specific API to use to get the count of assigned tasks(e.g applications) in human task?
    Thanks

  • BPEL count function

    I have requirement to count the number of elements present. Eearlier in Jdeveloper 10G i used to use a function called count(), but now iam using Jdeveloper 11g release 1(11.1.1.2.0), i cannot find count() function. Is it deprecated in 11g, are there any other functions available in 11g which can be used for this purpose?
    Regards,
    Raghavendra J

    I jdev11g ,there are mathematical fucntions,under the same u can find count().Usage count(inputNodeSet as node-set),which returns number of nodes in input nodeset

  • BPEL Array node count + xpath

    Hello,
    Trying to get the size or count of the array node, but get selection error, any idea?
    in below inputvariable date <ns1:error> node is of type array and i am using the xpath query,
    count(bpws:getVariableData('outputVariable','payload','/ns1:transaction/ns1:exceptions[1]/ns1:error[1]')) to get count of error nodes, but getting selection error
    <transaction status="dfg" taskId="1" txnPriority="1">
    <ns1:txnIdentification>
    <ns1:txnId>dg</ns1:txnId>
    <ns1:instanceId>dg</ns1:instanceId>
    <ns1:processName>dg</ns1:processName>
    <ns1:branchCode>dg</ns1:branchCode>
    <ns1:moduleCode>hg</ns1:moduleCode>
    <ns1:currentUser>ghj</ns1:currentUser>
    <ns1:txnComment>hg</ns1:txnComment>
    <ns1:stage>h</ns1:stage>
    <ns1:taskOutcome>hgj</ns1:taskOutcome>
    <ns1:operation>hg</ns1:operation>
    <ns1:realm>gh</ns1:realm>
    </ns1:txnIdentification>
    <ns1:transactionData>
    <ns1:moduleData>hgj</ns1:moduleData>
    </ns1:transactionData>
    <ns1:exceptions>
    <ns1:error>
    <ns1:ecode>1</ns1:ecode>
    <ns1:etype>1</ns1:etype>
    <ns1:edesc>1</ns1:edesc>
    </ns1:error>
    <ns1:error>
    <ns1:ecode>1</ns1:ecode>
    <ns1:etype>1</ns1:etype>
    <ns1:edesc>1</ns1:edesc>
    </ns1:error>
    </ns1:exceptions>
    <ns1:txnAuditDetails>
    Thanks
    <ns1:prevRemarks>fg</ns1:prevRemarks>
    <ns1:currRemarks>fg</ns1:currRemarks>

    ora:countNodes('outputVariable','payload','/ns1:transaction/ns1:exceptions/ns1:error)
    use the above expression in the expression builder and assign to the variable on the right side....
    Thanks,
    N

  • Want to get request number to BPEL process in an interval

    Hi All,
    I have two applications A and B.I need to receive request message from A to B through BPEL process. BPEL process receives the request data(through schema- Source of transform activity) from A and updates that data into B(Target -request schema of B).BPEL process is the middleware between two applications
    My requirement is :
    I want to analize request data in an interval of 24 hours. I have one parameter('sequence') in the request schema of B which has to indicate the request number to BPEL process.
    Clear explanation to requirement details:
    Application A starts pushing data at 12 'o clock(0:00 hrs midnight) and then parameter 'sequence' should be integer 1 or 0.Like that 'Sequence' should be increased by 1 for every request to BPEL process.
    I want the sequence values like below(for 24 hrs cycle):
    First request :
    Reuqest push time - 0:00 hrs
    Sequence - 1
    BPEL process instance(which will be created automaically in EM console) - Instance1
    Second Request :
    Reuqest push time - 1:30 hrs
    Sequence - 2
    BPEL process instance(which will be created automaically in EM console) - Instance2
    1
    Third Request:
    Reuqest push time - 4:00 hrs
    Sequence - 3
    BPEL process instance(which will be created automaically in EM console) - Instance3
    Like that
    last request in 24 hrs cycle should be :
    Reuqest push time - 23:00 hrs
    Sequence - Some number according to number of requests at that time.
    After 24 hrs ,Sequence again should become as 1 to indicate the starting point of the 24 hrs next day.(like data in above table)
    Can you help me in this regard? I am using transform activity in which I have 'sequence' parameter .
    Thanks in advance
    Edited by: 899283 on Aug 25, 2012 7:16 AM

    Create a "While" activity.
    Create a variable named seq of type int.
    In the while condition check the current time.
    xp20:current-time() < <counter reset time>
    Create a pick activity to receive the message inside while loop.
    Create assign activity in the while loop. Assign the value of variable seq to the payload and increment it by one.
    Outside while loop , reset seq back to 0 by using another assign activity.
    In case the composite has to run continuously after first submission, use another outer while loop to check the condition while seq = 0.
    Hope it helps.
    Regards.

  • Problem getting Multiple Values From BPEL.

    I have created the BPEL process (jdeveloper 11g) R1 which reads the data from database adapter and I have to iterate the values one by one from while loop.
    I have created while activity and I want to assign my column value to one variable , I am following the concat option for assigning value.but I a was not able to concat my generated string please help me out.
    Below are the Expression that should be concated.
    bpws:getVariableData('Variable_ForCount','/client:WfApproval/client:WFApproval/client:approverName')
    I want to make the Expression as per following:
    bpws:getVariableData('Variable_ForCount','/client:WfApproval/client:WFApproval[bpws:getVariableData(My Count)]/client:approverName')
    can we use Escape for ' .
    Thank you,
    Sandeep.

    Hi,
    Here is an example from one of my flows - may be that will help you form your query:
    <copy>
    <from expression="bpws:getVariableData('receivePedidoFromSelector_InputVariable','payload')/ns2:ServicioMovil/ns2:Componentes/ns2:BONO[bpws:getVariableData('CuentaBONO')]/ns2:InstanciaComponente"/>
    <to variable="AuxiliarAddons"
    part="payload"
    query="/ns133:AddonsRequest/ns133:Addons/ns133:Addon/ns133:AddonIdCRM"/>
    </copy>
    CuentaBONO -- this is the array index

  • BPEL process state "Off"

    Hi,
    I had created one BPEL process which reads from FTP Remote server and writes to local file directory.
    After reading from Remote FTP server I am deleting file from the server. In the remote server I had created on user to interact with FTP server with all permissions. When the BPEL process executed FTP Adapter is deleting the File successfully from remote location but BPEL state is changed to “Off”.
    When I checked the logs, I found there is problem with Delete permission. Actually as mentioned above file is deleted successfully in the remote location.
    OPMN logs:
    <File Adapter::Outbound> Processing file : /click/xelusparts/feeds/jabilparts/outbound/process/\po_28.txt
    <File Adapter::Outbound> Sending message to Adapter Framework for posting to BPEL engine: {
    file=/click/xelusparts/feeds/jabilparts/outbound/process/\po_28.txt
    <2007-06-11 19:00:42,677> <DEBUG> <default.collaxa.cube.engine.deployment> <CubeProcessHolder::loadAndBind> Check if process FTPRetrieveTOFileWriteProcess, revision 1.0 needs to be reloaded
    <2007-06-11 19:00:42,709> <DEBUG> <default.collaxa.cube.ws> <WSDLManager::getWSDL> registered wsdl at http://dt1521-localhost.com:80/orabpel/default/FTPRetrieveTOFileWriteProcess/1.0/_FTPRetrieveTOFileWriteProcess.wsdl
    <2007-06-11 19:00:42,709> <DEBUG> <default.collaxa.cube.ws> <WSDLManager::getWSDL> got wsdl at: http://dt1521-localhost.com:80/orabpel/default/FTPRetrieveTOFileWriteProcess/1.0/_FTPRetrieveTOFileWriteProcess.wsdl
    <2007-06-11 19:00:42,724> <DEBUG> <default.collaxa.cube.ws> <File Adapter::Outbound> Sucessfully sent message : /click/xelusparts/feeds/jabilparts/outbound/process/\po_28.txt to Adapter Framework.
    <2007-06-11 19:00:42,724> <INFO> <default.collaxa.cube.ws> <File Adapter::Outbound> Deleting file : /click/xelusparts/feeds/jabilparts/outbound/process/\po_28.txt after processing.
    <2007-06-11 19:00:42,724> <DEBUG> <default.collaxa.cube.ws> <File Adapter::Outbound> Host name is 'DT1521-localhost.com'.
    <2007-06-11 19:00:42,724> <DEBUG> <default.collaxa.cube.ws> <File Adapter::Outbound> Reading reply from DT1521-localhost.com
    <2007-06-11 19:00:42,818> <DEBUG> <default.collaxa.cube.ws> <WSInvocationManager::invoke> operation: Write, partnerLink: <partnerLink name="FileWriter" partnerLinkType="{http://xmlns.oracle.com/pcbpel/adapter/file/Write/}Write_plt">
    <myRole name="null">
    <ServiceName>null</ServiceName>
    <PortType>null</PortType>
    <Address>null</Address>
    </myRole>
    <partnerRole name="Write_role">
    <ServiceName>null</ServiceName>
    <PortType>{http://xmlns.oracle.com/pcbpel/adapter/file/Write/}Write_ptt</PortType>
    <Address>null</Address>
    </partnerRole>
    <conversationId>bpel://localhost/default/FTPRetrieveTOFileWriteProcess~1.0/10610-BpInv1-BpSeq1.3-3</conversationId>
    <properties>{}</properties>
    </partnerLink>
    <2007-06-11 19:00:42,834> <DEBUG> <default.collaxa.cube.ws> <WSDLManager::getWSDL> registered wsdl at D:\OraHome_1\integration\orabpel\domains\default\tmp\.bpel_FTPRetrieveTOFileWriteProcess_1.0.jar\Write.wsdl
    <2007-06-11 19:00:42,834> <DEBUG> <default.collaxa.cube.ws> <WSDLManager::getWSDL> got wsdl at: D:\OraHome_1\integration\orabpel\domains\default\tmp\.bpel_FTPRetrieveTOFileWriteProcess_1.0.jar\Write.wsdl
    <2007-06-11 19:00:42,834> <DEBUG> <default.collaxa.cube.ws> <WSInvocationManager::invoke> def is file:/D:/OraHome_1/integration/orabpel/domains/default/tmp/.bpel_FTPRetrieveTOFileWriteProcess_1.0.jar/Write.wsdl
    <2007-06-11 19:00:42,834> <DEBUG> <default.collaxa.cube.ws> <WSIFInvocationHandler::invoke> opName=Write, parnterLink=<partnerLink name="FileWriter" partnerLinkType="{http://xmlns.oracle.com/pcbpel/adapter/file/Write/}Write_plt">
    <myRole name="null">
    <ServiceName>null</ServiceName>
    <PortType>null</PortType>
    <Address>null</Address>
    </myRole>
    <partnerRole name="Write_role">
    <ServiceName>{http://xmlns.oracle.com/pcbpel/adapter/file/Write/}Write</ServiceName>
    <PortType>{http://xmlns.oracle.com/pcbpel/adapter/file/Write/}Write_ptt</PortType>
    <Address>null</Address>
    </partnerRole>
    <conversationId>bpel://localhost/default/FTPRetrieveTOFileWriteProcess~1.0/10610-BpInv1-BpSeq1.3-3</conversationId>
    <properties>{}</properties>
    </partnerLink>
    <2007-06-11 19:00:42,834> <DEBUG> <default.collaxa.cube.ws> <WSIFInvocationHandler::doShortCut> Parner Property optShortCut
    <2007-06-11 19:00:42,834> <DEBUG> <default.collaxa.cube.ws> <File Adapter::Outbound> ResourceAdapterMetaData Connection Created
    <2007-06-11 19:00:42,834> <DEBUG> <default.collaxa.cube.ws> <AdapterFramework::Outbound> file:/D:/OraHome_1/integration/orabpel/domains/default/tmp/.bpel_FTPRetrieveTOFileWriteProcess_1.0.jar/Write.wsdl [ Write_ptt::Write(opaque) ] - Looking up Resource Adapter JDNI location 'eis/FileAdapter'
    <2007-06-11 19:00:42,834> <INFO> <default.collaxa.cube.ws> <File Adapter::Outbound> Managed Connection Created
    <2007-06-11 19:00:42,834> <DEBUG> <default.collaxa.cube.ws> <File Adapter::Outbound> Creating Connection
    <2007-06-11 19:00:42,834> <INFO> <default.collaxa.cube.ws> <File Adapter::Outbound> Connection Created
    <2007-06-11 19:00:42,834> <DEBUG> <default.collaxa.cube.ws> <File Adapter::Outbound> Creating FileInteraction
    <2007-06-11 19:00:42,834> <INFO> <default.collaxa.cube.ws> <File Adapter::Outbound> FileInteraction Created
    <2007-06-11 19:00:42,834> <DEBUG> <default.collaxa.cube.ws> <AdapterFramework::Outbound> Instantiating outbound JCA interactionSpec oracle.tip.adapter.file.outbound.FileInteractionSpec
    <2007-06-11 19:00:42,834> <DEBUG> <default.collaxa.cube.ws> <AdapterFramework::Outbound> Populating outbound JCA interactionSpec oracle.tip.adapter.file.outbound.FileInteractionSpec with properties: {FileNamingConvention=spob230_%SEQ%.txt, OpaqueSchema=true, ElapsedTime=60, NumberMessages=1, PhysicalDirectory=c:\inbound_dir, FileSize=1024000}
    07/06/11 19:00:42 file:/D:/OraHome_1/integration/orabpel/domains/default/tmp/.bpel_FTPRetrieveTOFileWriteProcess_1.0.jar/fileAdapterOutboundHeader.wsdl
    07/06/11 19:00:42 file:/D:/OraHome_1/integration/orabpel/domains/default/tmp/.bpel_FTPRetrieveTOFileWriteProcess_1.0.jar/fileAdapterOutboundHeader.wsdl
    07/06/11 19:00:42 file:/D:/OraHome_1/integration/orabpel/domains/default/tmp/.bpel_FTPRetrieveTOFileWriteProcess_1.0.jar/Write.wsdl
    <2007-06-11 19:00:42,849> <DEBUG> <default.collaxa.cube.ws> <AdapterFramework::Outbound> file:/D:/OraHome_1/integration/orabpel/domains/default/tmp/.bpel_FTPRetrieveTOFileWriteProcess_1.0.jar/Write.wsdl [ Write_ptt::Write(opaque) ] - Invoking JCA outbound Interaction
    <2007-06-11 19:00:42,849> <INFO> <default.collaxa.cube.ws> <File Adapter::Outbound> File Adapter received an input Record
    <2007-06-11 19:00:42,849> <DEBUG> <default.collaxa.cube.ws> <File Adapter::Outbound> Waiting outside sync object.....
    <2007-06-11 19:00:42,849> <DEBUG> <default.collaxa.cube.ws> <File Adapter::Outbound> Batcher created using staging : true with number of messages : 1
    <2007-06-11 19:00:42,849> <DEBUG> <default.collaxa.cube.ws> <File Adapter::Outbound> Input Record: javax.xml.transform.dom.DOMSource@e5394c
    <2007-06-11 19:00:42,849> <DEBUG> <default.collaxa.cube.ws> <File Adapter::Outbound> Translating....
    <2007-06-11 19:00:42,849> <INFO> <default.collaxa.cube.ws> <File Adapter::Outbound> Outbound Translation done.
    <2007-06-11 19:00:42,865> <DEBUG> <default.collaxa.cube.ws> <File Adapter::Outbound> Refreshed (staging/num Messages) file count : 1
    <2007-06-11 19:00:42,865> <DEBUG> <default.collaxa.cube.ws> <File Adapter::Outbound> Host DT1521-localhost.com FTP command: USER orabpel
    <2007-06-11 19:00:42,865> <DEBUG> <default.collaxa.cube.ws> <File Adapter::Outbound> Wrote to Control File
    <2007-06-11 19:00:42,865> <DEBUG> <default.collaxa.cube.ws> <File Adapter::Outbound> Batching staging File: staging0
    <2007-06-11 19:00:42,865> <DEBUG> <default.collaxa.cube.ws> <File Adapter::Outbound> Batcher sending to sender for output file writing
    <2007-06-11 19:00:42,865> <DEBUG> <default.collaxa.cube.ws> <File Adapter::Outbound> Sending File to output Dir
    <2007-06-11 19:00:42,865> <DEBUG> <default.collaxa.cube.ws> <File Adapter::Outbound> FileAgent.putFile() puts spob230_17.txt in c:\inbound_dir begins ...
    <2007-06-11 19:00:42,865> <INFO> <default.collaxa.cube.ws> <File Adapter::Outbound> Done Writing to output file spob230_17.txt in dir c:\inbound_dir !!
    <2007-06-11 19:00:42,881> <DEBUG> <default.collaxa.cube.ws> <File Adapter::Outbound> End clearing Control File
    <2007-06-11 19:00:42,881> <DEBUG> <default.collaxa.cube.ws> <File Adapter::Outbound> Deleting staging File: staging0
    <2007-06-11 19:00:42,881> <DEBUG> <default.collaxa.cube.ws> <File Adapter::Outbound> End clearing Control File
    <2007-06-11 19:00:42,881> <INFO> <default.collaxa.cube.ws> <File Adapter::Outbound> Interaction gets a ok response
    <2007-06-11 19:00:42,881> <INFO> <default.collaxa.cube.ws> <File Adapter::Outbound> Done with Input Record
    <2007-06-11 19:00:43,256> <DEBUG> <default.collaxa.cube.ws> <File Adapter::Outbound> FTP Command: USER, reply:
    331 Password required for orabpel
    <2007-06-11 19:00:43,256> <DEBUG> <default.collaxa.cube.ws> <File Adapter::Outbound> Host DT1521-localhost.com FTP command: PASS
    <2007-06-11 19:00:43,506> <DEBUG> <default.collaxa.cube.ws> <File Adapter::Outbound> FTP Command: PASS, reply:
    230 Login OK
    <2007-06-11 19:00:43,506> <DEBUG> <default.collaxa.cube.ws> <File Adapter::Outbound> Host DT1521-localhost.com FTP command: CWD /click/xelusparts/feeds/jabilparts/outbound/process/
    <2007-06-11 19:00:43,615> <DEBUG> <default.collaxa.cube.ws> <File Adapter::Outbound> FTP Command: CWD, reply:
    250 Directory successfully changed
    <2007-06-11 19:00:43,615> <DEBUG> <default.collaxa.cube.ws> <File Adapter::Outbound> Host DT1521-localhost.com FTP command: DELE po_28.txt
    <2007-06-11 19:00:43,709> <DEBUG> <default.collaxa.cube.ws> <File Adapter::Outbound> FTP Command: DELE, reply:
    200 Deleted file "po_28.txt".
    <2007-06-11 19:00:43,709> <DEBUG> <default.collaxa.cube.ws> <File Adapter::Outbound> FTPClient.deleteFile(): 200 Deleted file "po_28.txt".
    <2007-06-11 19:00:43,709> <ERROR> <default.collaxa.cube.ws> <File Adapter::Outbound> FTPClient.deleteFile(): Unable to delete file po_28.txt', reply code = 200
    <2007-06-11 19:00:43,709> <DEBUG> <default.collaxa.cube.ws> <File Adapter::Outbound> Processer thread calling onFatalError with exception Error deleting file from FTP Server.
    Unable to delete file from server.
    Please ensure whether the remote file has delete permission.
    <2007-06-11 19:00:43,709> <FATAL> <default.collaxa.cube.activation> <AdapterFramework::Inbound> [Get_ptt::Get(opaque)] - Resource Adapter requested Process shutdown!
    <2007-06-11 19:00:43,709> <INFO> <default.collaxa.cube.activation> <AdapterFramework::Inbound> Adapter Framework instance: OraBPEL - performing endpointDeactivation for portType=Get_ptt, operation=Get
    <2007-06-11 19:00:43,709> <INFO> <default.collaxa.cube.ws> <File Adapter::Outbound> Endpoint De-activation called in adapter for endpoint : /click/xelusparts/feeds/jabilparts/outbound/process/
    <2007-06-11 19:00:43,725> <DEBUG> <default.collaxa.cube.engine.deployment> <CubeProcessHolder::loadAndBind> Check if process FTPRetrieveTOFileWriteProcess, revision 1.0 needs to be reloaded
    <2007-06-11 19:00:44,037> <INFO> <default.collaxa.cube.activation> <AdapterFramework::Inbound> JCAActivationAgent::onStateChanged State is changed for process 'bpel://localhost/default/FTPRetrieveTOFileWriteProcess~1.0/', state=OFF
    <2007-06-11 19:00:44,037> <DEBUG> <default.collaxa.cube.engine.deployment> <CubeProcessHolder::updateRevision> Updated state for process FTPRetrieveTOFileWriteProcess (revision 1.0) to 1
    Thanks,
    Vidya

    Hi SR,
    You can do this by having a BPEL process with a java embedding containing below code.
    * Input Variables
    String processName   = (String)getVariableData("processName");                                                                                 
    String revision      = (String)getVariableData("revision");             
    * Declare variables.
    IBPELProcessHandle procHandle = null;            
    Locator loc = null;            
    BPELProcessMetaData bpelProcessMetadata = null;             
    try{               
         * get Locator Instance
        loc = getLocator();                            
         * Lookup Process. Revision optional.
        if(revision == null || revision.trim().equals(""))            
          procHandle = loc.lookupProcess( processName );             
        else            
          procHandle = loc.lookupProcess(processName, revision);             
        if(procHandle == null)          
          throw new Exception("Unable to find process: " + processName);          
         * Get Metadata of the process.
        bpelProcessMetadata = procHandle.getMetaData();             
         * Set Lifecycle to Retired.
         * Use setState(IBPELProcessConstants.STATE_OFF) to change process state to off.
        bpelProcessMetadata.setLifecycle(IBPELProcessConstants.LIFECYCLE_RETIRED);    
         * Finally update the process with the modified metadata.
        procHandle.updateMetaData(bpelProcessMetadata);                   
    }catch (Exception e)                            
      addAuditTrailEntry(e);              
    }If you want you can schedule this process.
    Regards
    PavanKumar.M

  • File Adapter - how to get the file count from a folder

    Hi All,
    I have a requirement that have to poll a directory when the file count is reached to number N (ex:number of files avilable in folder is 5) otherwise it should wait and not pick any of the files. Is it possible to get the file count from a folder using file adapter ?? otherwise please suggest me an approach to achieve this requirement.
    Thanks,
    JJ

    Hi Sarath,
    Thank you for your reply.
    Go with the list files operation of file adapter it will gives you the number of files in the specified folder as you given. . - this step is already done.
    When the number of files reaches your count startup your webservice that which can polls the files. . . - how can i acheive this?? Have to poll the directory and process the number files - please let me know, what could be added to the webservice which is being invoked after cheking file count from parent process.
    The reason for the above question is - we cannot use ReadFile operation in second webservice because it will be automatically triggered when the file is avilable. Also SyncRead operation supports reading one file in b/w bpel process. Kindly explain me the implementation steps.
    Thanks,
    JJ

Maybe you are looking for

  • Unable to access any file on my iPod after a problem with a pics transfer

    Hi, I was downloading the pictures from my camera to my iPod video 30Go when something happened. After that, I was (and still am) unable to play music or watch movies or the pictures in the library. Actually, all the names still remain but when I sel

  • How to stop time machine from filling up trash

    I've been using time machine to backup my mac and I've noticed that whenever it deletes old backups to make room for the new ones it leaves my trash bin with about 30,000 files. This takes up a lot a space and is very time consuming to empty. Does an

  • Help!! My Zen V Plus has a black line across the disp

    Hi can someone please help me, my v plus display has a horizontal line across the screen and it really ruins everything. Can this still be fixes? Would anyone know this problem or had the same experience?

  • Defining Accounts for Bill of Exchange Transactions

    Dear all, I haven't understood yet about business and accounting process in Transactions BDS, BIK, DSK, INK. Please give me a detail example Thanks so much Minhtb

  • Premiere Elemts 8  Grauer Bildschirm

    Seit ca. 1 Monat kann ich den Adobe Premiere Elemts 8 (Video) nicht mehr gebrauchen. Jedes mal wenn ich das Programm öffne, habe ich nur einen Grauen Hintergrund ohne Bedienungselementen. habe die Software schon 2 mal Neu installiert, geht aber immer