Dynamic Filename in BPM process (SOAP with attachm. and PayloadSwapBean)

Hello together
I have the following BPM process:
1. IDoc=>WebServiceRequest
2. WebServiceResponse (payload) => IDoc
3. WebServiceResponse (attachment) => File
XI receivs an IDoc an map it to an WebService. The Webservice is called by XI and we receive the WebServiceResponse including a PDF attachment.
The challenge is to store the PDF attachment with a dynamic filename from the payload of WebServiceResponse.
We use the PayloadSwapBean to change the payload to the PDF attachment. But then we are not able to access the required information on the original WebService-XML-Response via variable substitution.
Is there a solution in the standard or have we to use a custom adapter module?
Thx
manuku

Hi Jayasimha,
We can do this by "Adapter Specific Message Properties" of ur comunication channels.
1.If u want to keep the output filename same as input filename, no need to use the UDF. only the 'adapter specific parameters' in both sender n receiver file adapter will do that.
In case if u want to get the filename inside our mapping we have to create a user defined function
which will return the filename and map it to one of our XML tags. 2nd point gives solution 4 that:
2. If u want to generate an output file taking some input from the payload,then u hav to use the UDF.There u hav to populate the name.
Pretty much.... if you set an attribute from the sender side, for example, you can use a UDF and access the particular attribute sent and use it in the mapping. In another example, where no attributes are sent from the sender, you can still actually set a particular attribute, say a filename derived from the payload, using a UDF, and enable the receiver attribute to use it. That's where the UDFs come in - either to get or set particular adapter specific message attributes.
This will be a very helpful blog which solves ur query:
/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
Regards,
Vinod.

Similar Messages

  • Problem integrating BPM Process Spaces with Webcenter Spaces PS5

    Good Day!
    I have currently installed a fresh build of Webcenter 11.1.1.6 stack in a single domain which contains:
    1.)     UCM
    2.)     Spaces
    3.)     SOA with BPM
    After configuring process-portal-install.properties, I have run the ant –f install.xml command which will integrate Process Spaces into Webcenter Spaces.
    The problem currently I am facing is that after seeing the process spaces link in Webcenter Spaces, I am also being redirected to internal problem and seeing the logs, I have something like:
    [2012-06-11T16:28:43.918-07:00] [WC_Spaces] [ERROR] [] [oracle.webcenter.webcenterapp.internal.view.webapp] [tid: [ACTIVE].ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: weblogic] [ecid: 81caeefafba8cb1a:-15b44550:137ddb9ada0:-8000-000000000000022e,0] [APP: webcenter#11.1.1.4.0] [[
    oracle.adf.controller.ControllerException: ADFC-06002: unhandled exception
    at oracle.adfinternal.controller.util.Utils.createAndLogControllerException(Utils.java:208)
    at oracle.adfinternal.controller.engine.ControlFlowEngine.handleException(ControlFlowEngine.java:640)
    at oracle.adfinternal.controller.engine.ControlFlowEngine.invokeTaskFlow(ControlFlowEngine.java:235)
    at oracle.adfinternal.controller.state.ChildViewPortContextImpl.invokeTaskFlow(ChildViewPortContextImpl.java:104)
    at oracle.adfinternal.controller.state.ControllerState.createChildViewPort(ControllerState.java:1387)
    at oracle.adfinternal.controller.ControllerContextImpl.createChildViewPort(ControllerContextImpl.java:78)
    at oracle.adf.controller.internal.binding.DCTaskFlowBinding.createRegionViewPortContext(DCTaskFlowBinding.java:474)
    at oracle.adf.controller.internal.binding.DCTaskFlowBinding.getViewPort(DCTaskFlowBinding.java:392)
    at oracle.adf.controller.internal.binding.TaskFlowRegionModel.doProcessBeginRegion(TaskFlowRegionModel.java:164)
    at oracle.adf.controller.internal.binding.TaskFlowRegionModel.processBeginRegion(TaskFlowRegionModel.java:112)
    at oracle.adf.controller.internal.binding.TaskFlowRegionController.doRegionRefresh(TaskFlowRegionController.java:241)
    at oracle.adf.controller.internal.binding.TaskFlowRegionController.refreshRegion(TaskFlowRegionController.java:119)
    at oracle.adf.model.binding.DCBindingContainer.internalRefreshControl(DCBindingContainer.java:3204)
    at oracle.adf.model.binding.DCBindingContainer.refresh(DCBindingContainer.java:2876)
    at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.prepareModel(PageLifecycleImpl.java:115)
    at oracle.adf.controller.faces.lifecycle.FacesPageLifecycle.prepareModel(FacesPageLifecycle.java:359)
    Caused by: oracle.adf.controller.ControllerException: ADFC-02001: The ADF Controller cannot find '/WEB-INF/processApplicationsTaskflow.xml'.
    at oracle.adfinternal.controller.metadata.provider.MdsMetadataResourceProvider.getMetadataObjects(MdsMetadataResourceProvider.java:473)
    at oracle.adfinternal.controller.metadata.provider.MdsMetadataResourceProvider.loadUnmutalbeMetadataResources(MdsMetadataResourceProvider.java:372)
    at oracle.adfinternal.controller.metadata.provider.MdsMetadataResourceProvider.getResources(MdsMetadataResourceProvider.java:183)
    at oracle.adf.controller.internal.metadata.MetadataService.getTaskFlowDefinition(MetadataService.java:239)
    at oracle.adfinternal.controller.activity.TaskFlowCallActivityLogic.findTaskFlowDefinition(TaskFlowCallActivityLogic.java:1072)
    at oracle.adfinternal.controller.activity.TaskFlowCallActivityLogic.invokeTaskFlow(TaskFlowCallActivityLogic.java:224)
    at oracle.adfinternal.controller.engine.ControlFlowEngine.invokeTaskFlow(ControlFlowEngine.java:217)
    ... 92 more
    Caused by: oracle.mds.core.MetadataNotFoundException: MDS-00013: no metadata found for metadata object "/WEB-INF/processApplicationsTaskflow.xml"
    at oracle.mds.core.MetadataObject.getBaseMO(MetadataObject.java:1331)
    at oracle.mds.core.MDSSession.getBaseMO(MDSSession.java:3200)
    at oracle.mds.core.MDSSession.getMetadataObject(MDSSession.java:1190)
    at oracle.mds.core.MOResolver.getMetadataObjects(MOResolver.java:218)
    at oracle.adfinternal.controller.metadata.provider.MdsMetadataResourceProvider.getMetadataObjects(MdsMetadataResourceProvider.java:421)
    ... 98 more
    I would like to ask if there is a support link or solution to this problem I am facing such that I may able to see BPM Process Spaces in Webcenter Spaces.

    Hi Jeff,
    Its looking that BPM was not correctly configured for some reason, exact root cause could not be pinpointed. You can try following two things:-
    1. Run the following ant command and restart the Admin and managed servers
    ant -f install.xml post-install -DpiArgs -importGSOnly
    2. If Oracle BPM and WebCenter have been configured in different domains, configure Trusted Domain Credentials in both the Oracle BPM and WebCenter domains.
    http://docs.oracle.com/cd/E23943_01/web.1111/e13707/domain.htm#SECMG404
    If issue is still there, you can open the SR with Oracle and also have a look on following bug that is released on 24-May-2012.
    Bug 13894890 : [SUP] ERROR NO METADATA FOUND FOR METADATA OBJECT "/WEB-INF/PROCESSAPPLICATIONST
    Regards,
    Imran

  • BPM Process Intergation with WebCenter portal

    Hi,
    I want to integrate a BPM process with WebCenter portal page. That Process should be opeb in portal page as it is as it run in BPM studio. So to achieve what componebt of portal should i use, Portlet or Spaces. Kindly provide me any link from where I can learn this thing using Jdeveloper.
    Regards
    -Arvind

    You should be using Spaces I beleive .. see details here-
    http://docs.oracle.com/cd/E28280_01/user.1111/e15175/bpmug_pp_gt_strt.htm

  • Bpm process registration with osb

    Hello
    I have sucessfully registered my bpm process with an osb instance and when i check osb console it shows it under projects.It only has a business service in it and i wish to check what is its wsdl of the registered service, can anyone please guide me how to di it..
    my business service end point uri is as below , i'm not sure if the host name should be the bpm or osb one..
    Endpoint: http://HostName:9003/albpmServices/ProjectName/ws/ProcessNameServiceListener
    Thanks

    You should be using Spaces I beleive .. see details here-
    http://docs.oracle.com/cd/E28280_01/user.1111/e15175/bpmug_pp_gt_strt.htm

  • Copy process instance with variables and state

    Hello,
    I want to make a kind of "snapshot" of my running BPEL instance.
    It should be possible to change some variable values of the snapshot
    and then continue the snapshot process with the changed parameters.
    Thus, I need to copy not only the BPEL description, but also the variable values,
    the state of the process and the outcome of the already finished activities.
    Any idea how this can be done ?
    Thanks in advance.
    Bernd

    Could you describe the use case? Because there are other options as well, like designing your process in such a way it can start at several distinct entrypoints, depending on the message it receives.
    I find the kind of solution you suggest very dangerous, as you try to 'hack' the BPEL engine. This makes your solution very vulnerable, as it probably will be affected by patches and new releases, whereas a more functional approach, using the standard functions, will be less so.
    Just my 2 cents, though.

  • How to create process chain with dso and infocube at a time

    hi friends,
      i have a FLATFILE in application server and i need to upload it to STANDARD DSO and i created a INFO PACKAGE and DTP for DSO.
    i have a STANDARD INFOCUBE to upload data from above DSO. here DSO is the source.  i want to schedule  this process in process chain. how could i do this. any one please give me solution.
         can any one explain me the options in RSPC and how they work and where we exactly use. this is very helpful to me. please give me guidance. thank you.
    thanks,
    sree

    First make sure you have already created the infopackage to load the data from server to the DSO and the DTP to load data from DSO to the Cube.
    Now goto Tcode RSPC.
    Choose Create process Chain option. provide appropriate technical name and description.
    Drag "Execute infopackage" process type from left hand side pane in RSPC.  Choose the infopackage to load the data from Server to DSO. you can find this infopackage using the F4 help in the above selected process type.
    Drag the "data transfer process" process type to load data from the Flat file data source above to the DSO.
    Then Drag the "Activate DataStore Request"  process type and select the DSO in which you would load the data  using the above DTP.
    Drag the "data transfer process" process type to load data from DSO to the Cube.
    Save, activate  and schedule the process chain according to appropriate time.

  • How to set the conversation id programmatically in a BPM process

    Hi all,
    I am using BPM/SOA 11g PS3.
    Is it possible to set the conversation id programmatically in a BPM process starting with a none start event?
    I know I can set it easily if I use a BPM process starting with a message start event.
    All I have to do is set it in the "wsa:MessageID" node in SOAP Header when I initiate the process instance.
    However, I have no idea how to set the conversation id programmatically in a BPM process starting with a none start event.
    I looked for if there is any appropriate method in the Java api for the process instance management, such as IInstanceManagementService and CompositeInstance, but no method seems to be appropriate.
    Does anyone know how to do this?
    Regards,
    Kenji
    Edited by: Kenji Imamura on 2011/04/20 0:10

    Hi fifty,
    Did you get a solution to the above problem you have mentioned? I have a similar issue i am trying to fix.
    I have a webservice call in a process activity and if the call does not work i get a soap fault and the fuego.lang.ComponentExecutionException . My process requires that i catch the exception infact any kind of exceptions that occur on that call and perform another activity in the process.
    I have defined an exception handler at the activity level for java.lang.Exception and java.lang.RunTimeException.
    i don't see anything in the catalog which would handle the SOAP fault OR the componentexception.

  • BPM Process Spaces: Attachments and Comments issue

    Hi,
    I've integrated BPM Process Spaces with WebCenter Spaces. When I'm trying to initiate a Process and send comments and attachment, the values for them is not passed from step to another. For example, if user A initiate a task with comments and attachments and send it to user B; user B can't see the comments and attachments from user A.
    I searched the internet and I found conflict answers, some answers are saying that comments and attachments are not supported and others are saying it's working.
    Can please someone give me a definitive answer and the configuration required if any?
    Also can someone give me a definitive answer about how to configure BPM to store attachment in UCM?
    This is urgent as I'm preparing a customer POC next week.
    Thanks
    Regards

    after some investigations I found the following:
    - Users can attach documents and provide comments on task level from the task details page. The attachments and comments will only be available for this specific task but not on the process level.
    - Users can attach documents and provide comments on Process level from the Process Tracking page-> Audit Trail part. The attachments and comments will available for all the tasks in the process
    - in BPM 11.1.1.5 Features Pack. Integration with UCM has been developed and also comments and attachments can be defined as Task level or Process level when ever the user want to provide one.
    Hope this helps.
    Thanks
    Regards

  • BPM Process deleted from ESR / ID but still visible in SXI_CACHE

    Hi,
    We are having some issues with BPM where even after deleteing the BPM processes from PI  ESR and its corresponsing ID reference the processes are still visible in SXI_CACHE.
    Can any one point to how we can get the CACHE alligned to wht is in the ESR and ID.
    Regards,
    Arunava

    where even after deleting the BPM processes from PI ESR and its corresponding ID reference the processes are still visible in SXI_CACHE.
    It gets refreshed automatically may be not immediately but daily , if you check the SXI_Cache after some time the deleted one will not appear.
    It will be visible in SXI_CACHE,please check the return value it should be 0 not 99.
    Try creating the IP with some other name , copy the existing one with new name and import in ID and try.
    Regards,
    Srinivas

  • MDM WD component Result Set in BPM process

    Hi all!
    I'm using an MDM WD pre-generated component ResultSet in my BPM process. User exits and context of this component are described in the link below:
    http://help.sap.com/saphelp_mdm71/helpdata/en/4a/387eb4a7ea1ca2e10000000a42189c/frameset.htm
    However I found thhat information insufficient. I'm trying to pass several records to the ResultSet component to display. So I'm experimenting with passing different values either to internalId context attribute or to FieldValues node. But I only managed to make it display only single record. For example by passing something like "2" to internalId (2 being Auto Id of the record in MDM). No luck with several records still.
    Can you please clarify what is exact specification of the data format to be passed to those context nodes in BPM?
    Thanks in advance,
    Peter

    I hope you are using wrapper DC where you have used ResultSet MDM WDC. You can set multiple records in the context using API
    setRecordIds(Integer[] ids) : Passes an array of MDM internal record IDs to the Result Set component for display. Non valid record IDs are ignored.
    refer http://help.sap.com/saphelp_mdm71/helpdata/en/4c/05b0ec5b814c86e10000000a42189e/content.htm
    e.g. in wrapper DC component wdThis.wdGet<ResultSet Component>Interface.setRecordIds(<array of record Ids>)
    -Abhijeet

  • NWDI, CBS, BPM process build fails

    Hello.
    We have a BPM process which we are trying to build on our DEVINF server. The devinf server is running on NW 7.01 SP7. We update the JDK to 1.6. All DC builds fine but the BPM process fails with an error:
    Error: java.lang.OutOfMemoryError: PermGen space
         at java.lang.Class.getName0(Native Method)
         at java.lang.Class.getName(Class.java:552)
         at java.lang.Throwable.toString(Throwable.java:342)
         at org.apache.tools.ant.BuildException.<init>(BuildException.java:88)
         at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1225)
         at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
         at com.sap.tc.buildplugin.techdev.ant.util.AntRunner.run(AntRunner.java:114)
         at com.sap.tc.buildplugin.DefaultAntBuildAction.execute(DefaultAntBuildAction.java:57)
         at com.sap.tc.buildplugin.DefaultPlugin.handleBuildStepSequence(DefaultPlugin.java:195)
         at com.sap.tc.buildplugin.DefaultPlugin.performBuild(DefaultPlugin.java:167)
         at com.sap.tc.buildplugin.DefaultPluginV3Delegate$BuildRequestHandler.handle(DefaultPluginV3Delegate.java:66)
         at com.sap.tc.buildplugin.DefaultPluginV3Delegate.requestV3(DefaultPluginV3Delegate.java:48)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sap.tc.buildtool.v2.impl.PluginHandler2.maybeInvoke(PluginHandler2.java:403)
         at com.sap.tc.buildtool.v2.impl.PluginHandler2.request(PluginHandler2.java:149)
         at com.sap.tc.buildtool.v2.impl.PluginHandler2.build(PluginHandler2.java:87)
         at com.sap.tc.buildtool.PluginHandler2Wrapper.execute(PluginHandler2Wrapper.java:59)
         at com.sap.tc.devconf.internal.DCProxyMake.make(DCProxyMake.java:318)
         at com.sap.tc.devconf.internal.DCProxy.make(DCProxy.java:1432)
         at com.sap.tc.devconf.internal.DCProxy.make(DCProxy.java:1414)
         at com.sap.tc.buildcontroller.CBSBuildController.build(CBSBuildController.java:713)
         at com.sap.tc.buildcontroller.CBSBuildController.execCommand(CBSBuildController.java:478)
         at com.sap.tc.buildcontroller.CBSBuildController.evalCmdLine(CBSBuildController.java:401)
         at com.sap.tc.buildcontroller.CBSBuildController.run(CBSBuildController.java:278)
         at com.sap.tc.buildcontroller.CBSBuildController.mainLoop(CBSBuildController.java:187)
         at com.sap.tc.buildcontroller.CBSBuildController.main(CBSBuildController.java:143)
    Error: Build stopped due to an error: PermGen space
    Should say that the process builds fine on the local workstation.
    We tried to change the parameter
    -XX:PermSize=1024m
    -XX:MaxPermSize=1024m
    but it doesn't help.
    Should we open the OSS ticket or not?

    Hi Jun Wu,
    I was getting exact the same error message for all activation requests and after selecting the option you mentioned I was able to activate/build again.
    CE 7.3 SP08
    Thumbs up!
    Regards, Roberto Viana

  • How to reuse a BPM Process in other DC

    Hi
    I have all generic reusable BPM Processes defined in a separate Process Composer DC. Now I am building specific BPM processes in sepearate DCs and want to use generic processes from other DC. How to do that?
    Thanks
    Raags

    Hi Raags,
    What you need to do is set up a dependency from your specific process to your generic process.
    You do this in the Development Infrastructure Perspective of the NWDS.
    Open your generic process DC and create a Public Part.  You can call it whatever you want - e.g. "api".
    Then open your specific process DC and create a dependency from the specific process DC to the generic process DC and its public part.
    Don't forget to check the Design Time/Deploy Time/ Runtime checkboxes in the Dependency details against the generic process DC and its public part. 
    If your DCs are in different software components you'll need a dependency at the software component level as well.
    If your dependencies are set up correctly you should then be able to select the generic process from your specific process, e.g. when creating a referenced sub process task.
    This works for all sorts of elements... e.g. it can be a handy way to share service groups or WDJ apps as UIs.
    Regards,
    Jocelyn

  • Inbound process with WM and HU

    Hi Friends ,
    I am exploring different possibility Standard SAP supports for goods receipt process through Inbound deliveries.TO make things simple right now I am only finding possibilities for EXTERNAL Material receipt only.
    The steps I know invloved in Inbound delivery process are (with WM and HU)
    1) PR - Source assignment - PO - Release PO
    2) Advance shipment notification (ASN)
    3) Inbound delivery creation
    4) Packing of material on Goods receipt
    5.1) Put-away - Automatic TR creation
    5.2 ) Put-away - Automatic TO creation
    5.2 ) Put-away material - TO Confirmation
    6) PGR
    Now I am looking for different configurations by which can automate processes mentioned above from point 2 to 6.Like
    2 and 3 ) ASN / Inbound delivery : I know that ASN can be received from vendor (in the form of idoc) and can create Inbound delivery automatically.But what if Vendor doesn't provide ASN message , how can we create deliveries for expected material ? Do we need to use VL06I ??
    4) Once the Inbound delivery is created , I know we can automate packing process ... not sure about the configuration.I only know that this invloved condition technique where we create Conditions / schema / condition records ... BUT where do we assign that SCHEMA ( like pricing schema is attached to PORG group / Vendor grp )
    5.1 ) Do we always need to have a TR to get TO created against Goods receipt OR can we can ask system to create TO directly without any TR ?
    5.2 ) TO Creation - Automatic TO creation as soon as the packing is completed.
    Where is this setting ?  I understand there are two process 1) real time TO creation 2) Background TO Creation. For immediate TO creation I can see a configuration in IM-WM movement type assignment configuration , is that all ??
    5.3 ) TO Confirmation -.Like TO Creation , do SAP also provide functionality to CONFIRM TO immediately or through Background Jobs ?? What are the required settings ?
    6) How can we automate the PGR process ?
    Sorry for this long query , but I hope there are many other friends who are interested in knowing all such possibilities.
    Thanks in advance for all your help.
    Regards
    Shrey

    2 and 3 ) ASN / Inbound delivery : I know that ASN can be received from vendor (in the form of idoc) and can create Inbound delivery automatically.But what if Vendor doesn't provide ASN message , how can we create deliveries for expected material ? Do we need to use VL06I ??
        Option 1: You can use transaction VL34 to create inbound deliveries by PO, Plant and the delivery date.
        Option 2: You can use transaction VL31N and click the Purchase Orders to create inbound deliveries.
    4) Once the Inbound delivery is created , I know we can automate packing process ... not sure about the configuration.I only know that this invloved condition technique where we create Conditions / schema / condition records ... BUT where do we assign that SCHEMA ( like pricing schema is attached to PORG group / Vendor grp )
        First we have to create the packing instruction in POP1.
    --> Give a packing instruction name.
    --> Then in the line 1 - Enter P and the packaging material
    --> Then in the line 2 - Enter M and enter the material to pack and give the quantity to pack in the packaging material. Eg: In each pallet how much quantity to be packed.
      Second go to the transaction POF1.
    --> Enter RCPT and based on the combination Material/Plant/Vendor, select it and enter the Material and the Packaging Instruction you created before.
    --> Then you can do the autopack in VL32N.
    5.1 ) Do we always need to have a TR to get TO created against Goods receipt OR can we can ask system to create TO directly without any TR ?
    --> We can create the TO directly from the VL32N.
    *5.2 ) TO Creation - Automatic TO creation as soon as the packing is completed.
    Where is this setting ? I understand there are two process 1) real time TO creation 2) Background TO Creation. For immediate TO creation I can see a configuration in IM-WM movement type assignment configuration , is that all ??*
       SPRO - Logistics Execution - Warehouse Management - Activities - Transfers - Set Up Autom. TO Creation for TRs / Posting Change Notices
    5.3 ) TO Confirmation -.Like TO Creation , do SAP also provide functionality to CONFIRM TO immediately or through Background Jobs ?? What are the required settings ?
       SPRO - Logistics Execution - Warehouse Management - Activities - Transfers - Define Movement Types
       Then select the Warehouse and the movement type 101 and select the option "TO item can be confirmed immediately"
       This will confirm the TO as and when the TO is created.

  • ORA-00488: RBAL process terminated with error causing ASM instance to crash

    Hi Freinds,
    I am manging a three node ASM cluster on 10g(10.2.0.2).Yesterday I observed one of the ASM instance got crashed .On reviewing the Alert log of crashed ASM instance I found
    "*ORA-00488: RBAL process terminated with error*"
    and subsequently
    "*PMON: terminating instance due to error 488*".
    I could restart the crashed instance without an issues but I want to know what kind of event could lead to such scenario.
    I searched net and metalink but didn't found any helpful information.
    Did any of you faced similar issues and do you have understanding why and when it happens.
    Thanks in Advance
    Arindam.

    Hi,
    There is bug reported on such issue, please check further on metalink if you have support.
    Dilip Patel.

  • Applescript/Terminal: Get PIDs of processes starting with...

    Hello,
    Is there a way to return all the PIDs of processes starting with "Myapp_action_download" in a neat array in Applescript, so I can kill them using Terminal?
    Something like this:
    set openapps to {}
    set openapps to (do shell script "the shell script which I don't know")
    --This script gets all the PIDs of processes starting with "Myapp_action_download", and returns them in a neat array
    set appcount to 0
    repeat (count of items of openapps)
    set appcount to appcount + 1
    do shell script ("kill -9 " & (item appcount of openapps) as text)
    end repeat
    Kind regards,
    Isaiah

    try
    tell application "System Events"
              set procesList to the name of every process whose name contains "Myapp_action_download"
    end tell
    tell application "System Events"
              set {procesList, pidList} to the {name, unix id} of (every process whose name contains "Myapp_action_download")
    end tell
    You'll have two lists one with the process name and one with the pid's. They will be in a one-to-one relationship. That is the first entry in the processList will correspond to the first entry in the pidList.
    However if the apps aren't hung or in a weird state you should be able to just tell the process to quit without resorting to killing them.
    Message was edited by: Frank Caggiano

Maybe you are looking for

  • Excise number range for 2009

    Dear All, I work for Indian client... I have maintained Number ranges for excise invoice as follows... NO-YEAR-FROM NUMBER-TO NUMBER-CURRENT NUMBER 01---200800000000010000004999--64 I want the Number to be continued for 2009 also. For eg, if the last

  • Error during loading and deletion of write-optimized DSO

    Hey guys, I am using a write optimized DSO ZMYDSO to store data from several sources (two datasources and one DSO). I have disabled the check of uniqueness in the DSO, but I defined a semantic key for the fields ZCLIENT, ZGUID, ZSOURCE, ZPOSID which

  • [Solved] How can I create logs of my console?

    Hello. I'm fairly new to linux in general and decided to take up the challenge and use Arch Linux. I have succeeded in installing the base system but I'm having a problem with getting my wireless network to work (dhcpcd doesn't seem to want to give m

  • Refresh UWL every time a action is done

    Hello Portals specialists, I've a small issue about UWL. I've configured refresh time to 1 minute in the personalization. But I want to have a automatic refresh, when I log in and when I manage a task. In fact, each time a action is done (logging, na

  • Auto-Rotate not working correctly after 8.1.1 update

    Updated my iPhone 5s to 8.1.1 last night.  Auto-Rotate will rotate to the side but will not rotate back now. Surely this is not by design??