Passing item attributes

Hello
I'm trying to pass an item attribute (text) to another item/type process, and i'm raising an event to do this
Workflow 1 = has a raise of an event
Workflow 2 = starts with a receiving event of the raised event of workflow 1.
I tried to pass a parameter, by, in the first workflow, adding the parameter to the parameter list in the event, before raising the event (by an action in the flow, and not by a pl/sql procedure).
In the documentation it says that : "When a business event message starts or continues a workflow process, the entire contents of the varying array are created as item attributes."
But this is not the case. When starting workflow 2, the added parameter is not created as an attribute.
When you define an attribute on the raising event, then it is created in the workflow 2 as an attribute, but passing it using the event object does not work.
Is there any sample code of how to add a parameter to the event object of the current process ?
Chris.

Chris,
The issue here is that when raising an event using the event activity, you dont actually pass the WF_EVENT_T structure. You set up the event name, event key and event data. In Workflow 2.6.2, it is possible to create activity attributes for the Raise Event Activity which map to the parameter list, so if you want to raise an event using the workflow activity and want to pass on a parameter list, you will need to create activity attributes.

Similar Messages

  • Item attributes not read by IPC

    Requirement: Pricing in Web Catalog based on Product Master Attributes. (condition records use fields from product master data. These condition record do not get calculated in the Product price displayed in the produdct catalog).
    What we have done so far
    1.     Implemented BAdI CRM_ISA_HDR_PRICING and its method NEW_ITEM_VALUES_READ for passing additional Product Master Attributes  and their values.
    2.     Activated the call of the CRM_ISA_PRICING_ITMDATA_GET function module for additional data at item level by setting the parameter u2018doItemCallsu2019= TRUE.
    This function module calls the NEW_ITEM_VALUES_READ method of the CRM_ISA_HDR_PRICING BAdI. Additional item data is transferred by implementing the NEW_ITEM_VALUES_READ method.
    3.     The NEW_ITEM_VALUES_READ method returns the additional attributes in the structure ET-ITEMATTRIBUTES.
    We have referred the SAP Note: 1004533.
    Issue:
    1.     When debugging, the method NEW_ITEM_VALUES_READ is getting executed and the table structure ET_ITEMATTRIBUTES is populated with all the additional attributes (for e.g. ZZ_VARIETY) and the corresponding values.
    2.     In the Java Session log, when IPC is reading those values from the structure ET_ITEMATTRIBUTES, just after reading the first attribute it throws an exception as shown below and exits the loop that reads the values from the structure. Thus it does not able to read the additional attributes at all.
    <<Snapshot of the error from Session Log>>
    May 22, 2009 9:56:40 AM  SAPEngine_Application_Thread[impl:3]_23 Error   com.sap.isa.backend.crm.webcatalog.pricing.PriceCalculatorCRMIPC       Error occcurred in EAI layer "".
    java.lang.ClassCastException
    java.lang.ClassCastException
                   at com.sap.isa.backend.crm.webcatalog.pricing.PriceCalculatorCRMIPC.readItemDataFromBackend(PriceCalculatorCRMIPC.java:2751)
                   at com.sap.isa.backend.crm.webcatalog.pricing.PriceCalculatorCRMIPC.getDynamicPrices(PriceCalculatorCRMIPC.java:830)
                   at com.sap.isa.backend.crm.webcatalog.pricing.PriceCalculatorCRMIPC.getPrices(PriceCalculatorCRMIPC.java:1217)
                   at com.sap.isa.businessobject.webcatalog.pricing.PriceCalculator.getPrices(PriceCalculator.java:117)
    Any ideas on why even with the parameter 'doITEMcalls=TRUE',  IPC is not able to read the item attributes?
    thanks for any useful replies.

    Is there an adobe accessibility forum where I can check
    for? I could not understand your clue.
    Do you mean if I use Panel, this problem could be solved?

  • Passing filter attributes from endeca to OAF

    Hi,
    We have the following scenario.
    The user searches for an object in endeca. In order to refine the results list, he/she selects some of the filter attributes from the guided navigation. Assuming that there are links for the items in the results list, is it possible to pass the attribute values which are selected in the filters
    apart from passing the attributes which are specific to the record selected in the result list?
    Pl. suggest.
    Thanks
    Chandra

    The usual way is to set those values as bean properties and let the JSF access them.
    Something like:
    mainPage.jsf<h:form>
        <h:inputText value="#{myBean.value}" />
        <h:commandButton value="submit" action="#{myBean.action}" />
    </h:form>MyBean.javaprivate String value; // + getter + setter
    public String action() {
        System.out.println(value); // Do something with value? Persisting in DB?
        return "anotherPage"; // Navigation case (do not redirect if bean is request scoped!)
    }anotherPage.jsf<h:outputText value="#{myBean.value}" />

  • Problem with Configurator - Cannot Update Item Attributes for a Config item

    Hi!
    We configured an item to reproduce the following feature of Oracle Configurator in our business case (Oracle Configurator Modeling Guide - 115czmod.pdf): «For example, if you have raw materials that are ordered by lengths, do not create an item for each length. Instead, define a single item for each raw material with an attribute: Length. Then capture the needed length from the end user by a numeric input or from a List of Options, and associate that input with the attribute.»
    However, after we run the AutoCreate Configuration Items program the item was created in the Item Master but no Attribute was updated with the user defined values (within OConfigurator).
    We associated Item Attributes to Propoerties and these are associated to Feature Options.
    we wish to have the Item Descriptive Element Values (Item Catalog)
    transferred from the Configurator run time, after we configure any item.
    This is because we are working with item dimensions, such as length and width.
    We need to define these dimensions during the Configurator run time and have them transferred into the final configuration so that we can use them later on manufacturing. We wish to display these dimensions on a job.
    Support said that "The descriptive element value for the configuration item is copied from the model. This process will not look at the properties in the configurator.
    You may consider using the custom hook for catalog descriptions to get the selected attributes from CZ to the descriptive elements for the config item. Please see Custom CTO Packages under Setup page 2-63 in CTO Process Guide for more details."
    I'm trying to implement the suggested solution.
    I've customized user_catalog_desc procedure on CTO_CUSTOM_CATALOG_DESC package to populate the item catalog values.
    I'm failing to find the descriptive element values defined on configuratior for a specific inventory item id.
    I have managed to found a relation between "p_params.p_item_id" given in procedure user_catalog_desc and
    the configurated item_id in order to update the catalog data on the CTO_CUSTOM_CATALOG_DESC package.
    This is what I've done:
    procedure user_catalog_desc (
    p_params IN CTO_CUSTOM_CATALOG_DESC.inparams,
    p_catalog_dtls IN OUT NOCOPY CTO_CUSTOM_CATALOG_DESC.catalog_dtls_tbl_type,
    x_return_status OUT NOCOPY VARCHAR2)
    is
    begin
    declare
    counter number;
    i number;
    l_value varchar2(30);
    begin
    -- Put your logic here in such a way that you populate p_catalog_dtls
    -- parameter. p_catalog_dtls is a array of records. The attributes of
    -- this record are cat_element_name and cat_element_value.
    -- viz. record (
    -- cat_element_name varchar2(30),
    -- cat_element_value varchar2(30)
    -- Example : p_catalog_dtls(1).cat_element_value := 'XYZ';
    -- IMPORTANT : DO NOT ALTER THE VALUE OF cat_element_name . Doing so will
    -- result in incorrect or inconsistent behaviour.
    -- Make sure you set the x_return_status variable to one of the following:
    -- FND_API.G_RET_STS_SUCCESS to indicate success
    -- FND_API.FND_API.G_RET_STS_ERROR to indicate failure with expected status
    -- FND_API.FND_API.G_RET_STS_UNEXP_ERROR to indicate failure with unexpected status
    select count(*) into counter from MTL_DESCR_ELEMENT_VALUES
    where inventory_item_id = p_params.p_item_id;
    for i in 1 .. counter loop
    select
    distinct to_char(nvl(cz.input_num_val,cz.item_num_val)) into l_value
    from OE_ORDER_LINES_V oe
    , oe_order_headers_all oeh
    , CZ_CONFIG_CONTENTS_V cz
    where oe.header_id = oeh.header_id
    and oeh.order_number in (
    select distinct oeh.order_number
    from OE_ORDER_LINES_V oe
    , oe_order_headers_v oeh
    where oe.header_id = oeh.header_id
    and oe.inventory_item_id = p_params.p_item_id)
    and cz.ps_node_name = p_catalog_dtls(i).cat_element_name
    and oe.config_header_id = cz.config_hdr_id
    and oe.config_header_id in (select distinct cz.config_hdr_id from CZ_CONFIG_CONTENTS_V cz)
    and cz.ps_node_name in (select element_name from MTL_DESCR_ELEMENT_VALUES where inventory_item_id = p_params.p_item_
    id);
    p_catalog_dtls(i).cat_element_value := l_value;
    end loop;
    x_return_status := FND_API.G_RET_STS_SUCCESS;
    end user_catalog_desc;
    end;
    Although the customization seam correct the AutoCreate Configuration Items process
    terminates with warning, and the catalog info is not updated as expected.
    Can anyone help me on this?
    Many thanks in advance.
    Paulo Santos

    How did you solve this issue? During my testing I found there to be no link to the order lines when I was within this program. Therefore I am having issues getting the configuration information to populate the catalog. Is there a link and I just was doing it wrong? Thanks for any help!
    Thanks,
    Angela

  • Line item attributes

    why we use line item attributes for account dimension

    Line item detail provides a mechanism to collect detailed information about a balance in HFM.

  • Why to use Item Attribute with Event in case of some controls

    A question about Event.Item
    When i saw the example of MenuBar , i observed that we can get the data of the MenuBar clciked   using a Event.Item@label .
    I am having a question here , please tell me why Flex Framework is designed in such a way that getting data from the Controls is different for different controls .
    I mean to ask why is it different in ncase of a MenuBar we have to use Event.item@label .
    CXan anybody please tell me why what significance does an Item attribute have in case of a Event ??
    Thanks in advance .

    It looks like you probably have ProductID setup as your key attribute. The key attribute has to be unique as it defines the granularity of your dimension. So based on the data you have shown ItemID should possibly be the key attribute. 
    http://darren.gosbell.com - please mark correct answers

  • WF item attributes for new workflow versions

    Hi All,
    I have a query regarding Item Attributes for a particular workflow.
    Assuming that for a particular version there are say 100 Item_Attributes for a particular Workflow.
    In case a new version is loaded and if the new version is having say 102 Item_Attributes then
    2 additional attributes appear in WF_Item_Attributes table for that Item_Type.
    What if in the new version the number of attributes gets reduced to say 95.
    Will the number of attibutes for that particular Item_Type in WF_Item_Attributes will be 95???

    workflow creates versions for the new workflows you create(for most of the activities though not all)
    satish paul
    Hi All,
    I have a query regarding Item Attributes for a particular workflow.
    Assuming that for a particular version there are say 100 Item_Attributes for a particular Workflow.
    In case a new version is loaded and if the new version is having say 102 Item_Attributes then
    2 additional attributes appear in WF_Item_Attributes table for that Item_Type.
    What if in the new version the number of attributes gets reduced to say 95.
    Will the number of attibutes for that particular Item_Type in WF_Item_Attributes will be 95???

  • Change ATO item attributes

    Hello All,
    I'm trying to change item attributes for an ATO Configuration item.
    According to the following link, these are Hard Coded item attributes:
    http://docs.oracle.com/cd/E18727_01/doc.121/e13692/T426454T426680.htm
    Is there anyway to change one of these fields, so the new configured item will be created with a different item attribute, without changing the package?
    Thanks,
    Tomer.

    Hi,
    It needs customization. But why do you want to change them? If we understand the requirement I believe I can give a try to explain.
    regards

  • Dynamically create document type Item Attribute using WF_ENGINE.AddItem API

    Hi
    Is WF_ENGINE.AddItem API , supported to create document type Item attributes dynamically ? If yes how do we set the display name of the attribute. If no then is there is any other method to dynamically create document tyoe item attribute?
    Thanks

    Hi,
    If the document is stored on a file system, then I would replace the message body with a PL/SQL document which includes links to the files as straightforward URLs. There would be no need to include them in the Workflow in any way. For example, I recently worked with a client where all the (file) attachments made within eBusiness Suite were then migrated into Oracle Universal Content Management and the attachment was replaced with a URL to the new document. Any notifications now just reference the URL link to the document within the document management system in an HTML notification. While the processing is going on, the user is given the list of files that exist as attachments, but no links because the document is being processed by the management system.
    If the attachments are going to be stored in Workflow as documents, you won't be able to change the display name though - display name is set for the attribute on the message, not for each specific notification. Changing the value of the display name for the message would impact all notifications that use that message, which isn't what you want.
    What you need is to dynamically build the notification (either using PL/SQL or OA Framework) and include a list of attachments in the notification. This may be a direct link to the document (either in a document management system or on a file system somewhere) that you can render as a URL, or a link to code that can retrieve the document from the database and serve that to the user. This is not a straightforward piece of work.
    If this is purely internal, you might be better off having a custom form / screen which displays the different documents, and link to that from the notification. Or you could link to a standard form for the transaction and have the users pick up the attachments directly from the transaction.
    HTH,
    Matt
    WorkflowFAQ.com - the ONLY independent resource for Oracle Workflow development
    Alpha review chapters from my book "Developing With Oracle Workflow" are available via my website http://www.workflowfaq.com
    Have you read the blog at http://www.workflowfaq.com/blog ?
    WorkflowFAQ support forum: http://forum.workflowfaq.com

  • Source Used Item Attribute

    Hi All,
    I am using HTML DB 2.0. I am a new user of HTMLDB. Please explain the difference between 2 Source Used Item Attribute
    1. Always, replacing an existing value in session state
    2. Only when current value in session state is null.
    If there is already a thread on this, please give me the link.
    Thanks in advance
    Monika

    So are you saying that this behaviour is different in v1.6?Yes. Otherwise the PPR stuff wouldn't work when those requests referenced uncommitted session state.
    You mean, "will NOT be able to ..."No, it will be able to see the value of the item (in uncommitted session state). That's the change from 1.6.
    What is an example of a "session-state committing source method"? Code that not only sets the source of the item for display but as a side-effect cause update_cache_with_write to occur for that item or for any other item(s). For example a PL/SQL Function source type that returns the source value and also does :P1_ITEM := 'value'; .
    Scott
    Message was edited by:
    sspadafo

  • ESYU: MASTER ITEM ATTRIBUTE UPDATE시 발생하는 ERROR 해결

    PURPOSE
    Master Item Attribute Update 시 발생하는 문제를 Manual Fix 시킬 수 있다.
    Problem Description
    Master Item Setup 후 종종 Attribute 값을 Update 하는 경우가 발생한다.
    이때 특정 Item의 특정 Attribute를 Update시 'FRM-40654' error가 발생하는
    경우가 있다. 이는 item attribute 들의 앞이나 뒤에 blank가 들어가 있는
    경우 발생하는 문제이며 Regacy System에서 Item Import시 blank가 들어가는데
    이것이 문제의 원인이 된다.
    아래의 script를 돌려 Item Attribute에 들어가 있는 blank를 remove한다.
    Solution Description
    set serveroutput on size 1000000
    DECLARE
    len_var1 NUMBER;
    len_var2 NUMBER;
    sql_stmt VARCHAR2(450);
    ln_cursor INTEGER;
    ln_rows_proc INTEGER := 0;
    CURSOR mtl_system_columns_cur is
    SELECT column_name
    FROM all_tab_columns
    WHERE table_name = 'MTL_SYSTEM_ITEMS_B'
    AND DATA_TYPE = 'VARCHAR2';
    BEGIN
    for cur in mtl_system_columns_cur
    Loop
    sql_stmt := 'select nvl(length(' || cur.column_name || '),0),
    nvl(length(trim(' || cur.column_name || ')),0)';
    sql_stmt := sql_stmt || ' from mtl_system_items_b ';
    sql_stmt := sql_stmt || ' where inventory_item_id = ' || &inv_id ;
    sql_stmt := sql_stmt || ' and organization_id = ' || &org_id ;
    ln_cursor := dbms_sql.open_cursor;
    DBMS_SQL.PARSE(ln_cursor,sql_stmt,dbms_sql.native);
    DBMS_SQL.DEFINE_COLUMN(ln_cursor,1,len_var1);
    DBMS_SQL.DEFINE_COLUMN(ln_cursor,2,len_var2);
    ln_rows_proc := DBMS_SQL.EXECUTE(ln_cursor);
    IF DBMS_SQL.FETCH_ROWS(ln_cursor) > 0 then
    DBMS_SQL.COLUMN_VALUE(ln_cursor,1,len_var1);
    DBMS_SQL.COLUMN_VALUE(ln_cursor,2,len_var2);
    END IF;
    DBMS_SQL.CLOSE_CURSOR(ln_cursor);
    sql_stmt := '';
    IF (len_var1 != len_var2) then
    dbms_output.put_line('Bad Column: ' || cur.column_name);
    END IF;
    len_var1 := 0;
    len_var2 := 0;
    END LOOP;
    EXCEPTION
    when Others then
    dbms_output.put_line('Error is' || sqlerrm(sqlcode));
    end;
    commit;
    Update mtl_system_items_tl
    set description= trim(description - script 결과값);
    update mtl_system_items_b
    set description = trim(description - script 결과값);

  • Functionality of OE Transactable Item attribute

    Hi,
    Can anyone explain the functionality of OE Transactable Item attribute.The item can be picked/shipped and interfaced to Inventory module even without enabling this Item attribute.
    thanks

    Hi
    In your case then the 'shippable' flag would have been enabled.
    We can have OE transactable flag as disabled even with 'Shippable' flag enabled.
    If both these flags are disabled then inventory interface would not be there.
    You can use OE transactable in isolation, for items used in forecasting and planning like product families
    Regards

  • Dynamic Item Attribute

    Is it possible to create a item attribute dynamically in oracle workflow?

    Yes,
    WF_ENGINE.AddItemAttr
    (itemtype in varchar2,
    itemkey in varchar2,
    aname in varchar2,
    text_value in varchar2 default null,
    number_value in number default null,
    date_value in date default null);
    Regards,
    Alejandro

  • Passing Request Attributes in betweeen pageflow Portlets

    Hi
    How to pass Request Attributes in between Pageflow Portlets
    I tried with ScopedServletUtils class but it's not working for me
    Thanks

    Consider using events to pass data between portlets. Refer to docs about
    Interportlet Communication (IPC).
    Subbu
    Srinivasa Reddy Kapidi wrote:
    Hi
    How to pass Request Attributes in between Pageflow Portlets
    I tried with ScopedServletUtils class but it's not working for me
    Thanks

  • Passing page attribute to popup window

    Hello friends -
    I want to pass the internal table which is page parameter of page 1 to page2.
    I am opening page2 from page1 as a popup by using window.open command.
    Is that auto passing of attribute works in this case?
    Basically i want to know how to pass values from parent to popup window?
    Thanks in advance.
    Thanks
    Hari

    couple of options
    1. server side cookie
    2. itab as application class attributes.
    for both approaches search the forum for sample code
    Raja

Maybe you are looking for

  • Benefit and limitation of temp table in sql server 2008

    I have a datagrid in front end of asp.net . when user select a row it shows another gridview (multiple row ) where user have to put some data. when user click CLOSE button  i have to keep all data of 2nd gridview in reference with 1st gridview row id

  • Settings in SAP R/3  And XI While IDOC is Receiver

    Hi All, If IDOC is the Sender Means, we need to Configure the Following <b>In R/3</b> 1) Create Logical Sys of XI in R/3 2) Create RFC Destination in R/3 Towards XI ( RFC Dest Name Shld be Logical        System of XI ) 3) Create Port ( WE21) 4) Creat

  • Copy Mail Rules from Mac Pro to Macbook Air in Mavericks 10.9

    Hi All- I have a Mac Pro running Mavericks 10.9 and a Macbook Air also running 10.9. I have set up a very detailed set of rules for organizing my incoming email on my Mac Pro that I would also like to use on my Macbook Air. Details: Mac Pro - Maveric

  • Changing fonts in Mail

    Hi, can anyone tell me how to change fonts in MacMail when composing new messages? Thanks, Bob Tomsak

  • Does anyone make a display for iPod song/artist/album info?

    My old man turned 90 recently. I gave him an iPod and he absolutely loves it! But his wife (my mother) is always asking him who's singing and he's forced to get up from the table each time to look -- with the help of a magnifying glass! -- into the i