Workflow Attribute Namespace?

How would I compare a waveset attribute with the attribute being modified from the Tabbed User Form?
ex)
<Transition to="Rename Activity">
<cond>
<neq>
<ref>waveset.EXT_ATTRIBUTE</ref>
<ref> EXT_ATTRIBUTE being updated in UpdateUser WORKFLOW</ref>
</neq>
</cond>
</Transition>
<Transition to="DoNotUnlock"/>
Thanks                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

You can check for renames by comparing like this:
<neq>
    <ref>user.accounts[Lighthouse].netlinkID</ref>
    <ref>user.waveset.attributes.netlinkID</ref>
</neq>    A problem is that if the rename of a resource account fails for some reason, the workflow won't try it again the next time.
A more effective approach that I use to check for renames with LDAP and AD is this:
<and>
    <ref>user.accountInfo.accounts[LDAP].created</ref>
    <not>
        <invoke name='endsWith'>
            <new class='javax.naming.ldap.LdapName'>
                <ref>user.accountInfo.accounts[LDAP].accountId</ref>
            </new>
            <list>
                <new class='javax.naming.ldap.Rdn'>
                    <s>uid</s>
                    <ref>user.global.netlinkID</ref>
                </new>
            </list>
        </invoke>
    </not>
</and>It is clumsy in that I have to construct the RDN and compare it to the resource account. I have to do this for both LDAP and AD.
It does work reliably, though.

Similar Messages

  • Storing Multiple Values in Workflow Attribute

    Hi,
    I got the requirement where i want to store multiple values into Workflow Attribute. Is there any way to accomplish this.
    Thanks
    J

    Hi,
    Do you mean multiple different values in the same attribute at the same time?
    If not, then yes - this is standard functionality. Just use the appropriate API to set the new value whenever it changes.
    If yes, then possibly, but that would be exceptionally bad design. If you want to store different concurrent values in the same attribute, then the only type this would work for would be a text attribute, and you would need to include a delimiter between the values so that they can be stored. Then, whenever you need one of the values, you need to split the attribute according to the position of the delimiters.
    I have no idea when you would have a requirement to store multiple values in the same attribute at the same time - as I said, it is exceptionally bad design, so I'm going to hope that you just mean to hold different values at different times.
    If you meant you want to store multiple values into multiple attributes at the same time, then there are also APIs that can be used to accomplish that. I would not recommend using them, as it makes it harder in the long term to maintain and support the application - having multiple calls is no slower, but makes the code easier to read and understand.
    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

  • Workflow Attribute Set

    Hai frnds,
    I am a newbie to oracle workflow.May I know how to create oracle Workflow Attribute Set

    Can you please enhance the question? What is it you a trying to do? In Workflow you can create a list of attributes by using user type wf_parameter_list_t and then adding attributes to it like this
    declare
    myList WF_PARAMETER_LIST_T;
    begin
    WF_EVENT.AddParameterToList('PARAMETER_NAME', 'Parameter Value', myList);
    end;
    There are several APIs that use this user type.
    Regards,
    Alejandro

  • Workflow Attributes

    Is anyone using workflow attributes to store all their data relevant to a workflow process, similar to the product demos?
    Ideally, I'd like to store all my application data in an external schema and just have workflow keep track of the item_key. The problem with this approach is that you can't reference data in a notification header, for example, unless it's stored as an attribute. I've read where overusing item attributes is bad practice, but I don't like the idea of having some data stored as item attributes, some stored externally, or a combination of both. Any suggestions?
    Thanks in advance.

    You generally should not use Workflow to store application data. Your application should be doing it. Workflow should store pointers to your application which it can use for the process.
    When sending notifications you can construct the subject and body by setting a minimal set of attributes. In this way you dont need to store all application data.
    Reducing the number of attributes is defenitely recommended. Also creating attributes on the run only when required is also another option which you can use.

  • Storing XMLType object as a Workflow Attribute - is it possible?

    Dear Experts,
    I have an XML document stored as a PL/SQL 'XMLType' object and I wish to store it in a Workflow Attribute. Is this possible and if so, under what 'Type' option shall I store it as?
    Many thanks,
    Mark

    Hi,
    You can store the payload as a CLOB inside a Workflow Event attribute type (WF_EVENT_T).
    If the XML is guaranteed to be short, you could store it in a text attribute of up to 4000 characters, but I'd be inclined to store it in the event.
    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://thoughts.workflowfaq.com ?
    WorkflowFAQ support forum: http://forum.workflowfaq.com

  • Workflow Attribute Names

    Answer me this...
    When you create a workflow in the Workflow builder, one is FORCED to have the item level and function level attribute internal names to be all uppercase. Fine. So I make a work attr called MY.ATTR.NAME.
    But then, in a PL/SQL function, I am allowed to call WF_ENGINE.GetItemAttrText(itemtype,itemkey,'MY.attr.NAME') and it will fail. It will fail because there is no such attribute called MY.attr.NAME and that is because the workflow builder creates all attributes with uppercase names.
    Why in the GetItemAttr and GetActivityAttr functions does Oracle not call UPPERCASE on the names? It would only make sense, so that there is a normalized form of attribute naming? Or make the search for attribute names case-insensitive. Looking at the function body, neither is done. Why is that?
    Its forcing me to wrap the Oracle-provided functions with my own that call UPPERCASE on the attr names and then call the Oracle functions because I have many users who will be creating workflows and their corresponding PL/SQL functions and I'd like to make it as painless as possible.

    Raja,
    How does one go about opening an ER? Through my MetaLink account?
    I mean, its not absolutely necessary although I would like to see it in a future patch or version. I just didn't understand the logic behind it... Force users to be able to create only uppercased attribute names but when they go to retrieve them, allow any capitalization. That just leaves room for unnecessary errors.

  • Workflow : attributes  and methods in BOR

    Hi to all,
         I need to create a custom attribute in custom BOR object. I want to put some value in custom attribute by using select statement . where do i write the code for that attribute in BOR. In standard methods i have seen that ex: gw_purchase = object-key-number   wt is that object-key- number. wt is the value does this holds
    so any one  please explain me  with details.

    Hi,
    methods in BOR are piece of codes that you execute in runtime by calling them in workflow. So when you check the box object method with dialog, such methods need to processed by user i.e; workitem agents. If you don't check this checkbox, the piece of code (method) will you be executed in the background without sending the workitem to user.
    Let me know if you still have doubts.
    Regards,
    Raj

  • Central contract Workflow attributes

    Hello,
    As per my understanding we can activate the workflow on any contract attributes/ fields(for central contract) like prices, product category etc.
    We can activate u201C1-stepu2019 standard bc set u201C/SAPSRM/C_CT_600_001_SP04u201D and can determined workflow agent based on any attributes like u201CProduct categoriesu201D ,price etc
    Or we can use BADI Implementation u201CBADI /SAPSRM/BD_WF_RESP_RESOLVERu201D for Agent determined based on attribute store in customized table
    Please correct me if my understanding is wrong
    However we need your valuable inputs on below
    1)     List of central contract ( CCTR ) attributes/fields on which we can activate the workflow.
    2)     List of central contract ( CCTR ) attributes/fields on which we can activate the workflow without any badi implementation ( without any coding ). As a part of standard configuration.
    Best Regards
    EPR_SRM_MDM

    HI,
    I suppose you plan to use process controlled workflow.
    If yes then you can check the tcode BRF and try to create a expression of type formula interpreter.
    In the this expression navigate to formula editor and here you can find all the attritutes you can trigger for any business object.
    For agent dertermination SAP has already delivered many agent determination method.. If a process level and click on the F4 feature available for field Resolver Name to find all the predelivered methods.
    You can check the service market place http://service.sap.com for Workflow Guide SAP SRM 7.0
    Path:
    service markerplace -> Release & Upgrade info -> Installation & Upgrade Guides-> select SRM 7.0
    Regards
    Sam

  • Tracing Termination Workflow attributes from Manager Self Service

    From Self service page on termination, I am setting attributes in a workflow function these attributes are used in the notification that is sent to the users. For a particular scenario I want to trace values of the attributes, is there a way to trace complete flow and attribute values flowing from self service page -> Workflow -> Notification.

    Why don't you try with the Wokflow status monitor. There you can check out the activities and check out the values of the attributes i think

  • What happened to attribute namespace declaration

    Hi,
    The code below:
    public class XMLWriter {
         public static void writeXML() throws TransformerFactoryConfigurationError,
                   TransformerConfigurationException, SAXException {
              SAXTransformerFactory tf = (SAXTransformerFactory) SAXTransformerFactory
                        .newInstance();
              tf.setAttribute("indent-number", Integer.valueOf(4));
              TransformerHandler hd = tf.newTransformerHandler();          
              Transformer t = hd.getTransformer();
              t.setOutputProperty(OutputKeys.ENCODING, "UTF-8");
              t.setOutputProperty(OutputKeys.METHOD, "xml");
              t.setOutputProperty(OutputKeys.INDENT, "yes");
              hd.setResult(new StreamResult(new OutputStreamWriter(System.out)));
              AttributesImpl atts = new AttributesImpl();
              atts.addAttribute("http://attribs.com/attImpl", "attribOne", "someNamespace:attribOne", "string",
                        "someValue");          
              hd.startDocument();
              hd.startElement("http://example.com", "tag", "a:tag", atts);
              hd.endElement("http://example.com/a", "tag", "a:tag");
              hd.endDocument();
         public static void main(String[] args) {
              try {
                   writeXML();
              } catch (Exception e) {
                   e.printStackTrace();
    }produces the following output (using JRE 1.6.0_01):
    <?xml version="1.0" encoding="UTF-8"?>
    <a:tag xmlns:a="http://example.com" someNamespace:attribOne="someValue"/>but where's the namespace declaration for someNamespace? What to do to make sure that the namespace declaration for an attribute is included in the output.
    Regards,

    Thank you, that works just fine,
    it's a shame though that TransformerHandler is capable of generating namespace declatarion for Element but not it's attributes.
    Regards,

  • Make workflow attribute required

    Hi developers.
    I need to make message respond attribute required. Now it is optional for fill. Is it possible?
    Thank you.

    Neeraj Verma wrote:
    Hi Jack,
    In order to fullfill this you should use Requied user property at Field Level. Also note you have to use a calulated Field which will calulate the logic like IIF([Industry Segment]="Banking & Finance", "Y", "N")
    I am also giving you useful link :
    http://download.oracle.com/docs/cd/B40099_02/books/ToolsDevRef/ToolsDevRef_UserProps164.html#wp574664
    Hijack
    Keep in mind that the Field User Property 'Requied' only works with BC that are based on the class CSSBCBase.
    Since you didn't say what version of Siebel you are on, you should also be aware of the fact that this Field User Prop
    was introduced with Siebel 7.5 and doesn't work with Siebel 7.0 or earlier versions.
    Axel

  • Issue in notification API for oracle workflow

    Hi,
    I am facing issue in sending oracle workflow notification. i have created a simple workflow with a process.
    I wrote one package which is creating adhoc role and sending the notification through api I(wf_notification.send).
    I am able to get the notification as well as email notification but without attribute values. My workflow attributes are getting replaced by null, but message body is appearing.
    Please help me, its urgent.
    Thanks
    Rajni

    I doubt that Oracle 7 DB is not supported. You may consider raising a SR with support.
    Regards,
    Anuj

  • What is the best way to change a namespace in an xml document

    Hi,
    I need to change an xml namespaces. The xml has about 200 elements and every element may have a namespace attribute (namespaces are all the same).
    Is there any better solution then the following function?
    SQL> create or replace function change_namespace(p_xml xmltype, p_namespace varchar2) return xmltype is
      2    l_doc dbms_xmldom.DOMDocument;
      3    l_nodes dbms_xmldom.DOMNodelist;
      4    l_node dbms_xmldom.DOMNode;
      5  begin
      6    l_doc:=dbms_xmldom.NewDOMDocument(p_xml);
      7    l_nodes:=dbms_xmldom.getElementsByTagName(l_doc,'*');
      8    for i in 0..dbms_xmldom.getlength(l_nodes)-1 loop
      9      l_node:=dbms_xmldom.item(l_nodes,i);
    10      if i=0 then
    11        --set namespace only for the root node
    12        dbms_xmldom.setattribute(dbms_xmldom.makeElement(l_node),'xmlns',p_namespace);
    13      else
    14        --remove all the other namespaces
    15        dbms_xmldom.removeattribute(dbms_xmldom.makeElement(l_node),'xmlns');
    16      end if;
    17    end loop;
    18 
    19    return dbms_xmldom.getxmltype(l_doc);
    20  end;
    21  /
    Function created.
    SQL> select change_namespace(xmltype('<a xmlns="aaa"><b xmlns="aaa">4</b><c>44</c></a>'),'newnamespace')
      2  from dual;
    CHANGE_NAMESPACE(XMLTYPE('<AXMLNS="AAA"><BXMLNS="AAA">4</B><C>44</C></A>'),'NEWN
    <a xmlns="newnamespace">                                                       
      <b>4</b>                                                                     
      <c>44</c>                                                                    
    </a> Ants

    Hi,
    I found a better and almost 10x faster way to remove the namespaces, using xsl.
    here's the original xsl with a little modifications http://bytes.com/forum/thread448445.html
    SQL> with t as (select xmltype('<a xmlns="aaa"><b xmlns="aaa">4</b><c>44</c></a>') xcol from dual)
      2  select xmltransform(xcol
      3    ,xmltype('<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
      4               <xsl:template match="*">
      5                <xsl:element name="{local-name()}" namespace="">
      6                 <xsl:apply-templates select="@* | node()" />
      7                </xsl:element>
      8               </xsl:template>
      9              </xsl:stylesheet>'))
    10  from t;
    XMLTRANSFORM(XCOL,XMLTYPE('<XSL:STYLESHEETVERSION="1.0"XMLNS:XSL="HTTP://WWW.W3.
    <a><b>4</b><c>44</c></a>+but check Laurents Schneider's blog website+
    I didn't find any posts about namespace on Schneider's blog.
    Ants

  • Error with hyperlink to open a form in Workflow Notification

    Hi All,
      I am trying to create a hyperlink to open a form in Workflow Notification. I want to open "Prepare Mass Additions" form from my workflow. I am in R12 (12.1.3) and there is no parameters defined for this function.
      So i am trying the method given here:
      http://oracleappsnotes.wordpress.com/2011/04/15/accessing-oracle-forms-from-workflow/
      Below is a summary of steps from this blog:
    Register a new custom form function with a parameter CREATE_BATCH_ID.  Function name is XXFAXMADDS. Its just the seeded FAXMADDS form function, just with the addition of parameter.
    Create an attribute of type ‘Form’ which stores the name of the form function and the parameter with which we want to call it. The default value of the attribute is XXFAXMADDS:CREATE_BATCH_ID=&BATCH_ID
    In a workflow process include a notification message.
    Associate the attribute with the notification message
    Personalize the new form function, to add actions to assign the value of parameter to the form field, then goto the Find Button, and click it.
        When i click on the link in notification, I am getting the below errors:
        FRM-47023: No Such parameter named G_QUERY_FIND exists inform FAXMADDS
        FRM-40105: Unable to resolve reference to item PARAMETER:G_QUERY_FIND
        FRM-47023: No such parameter named CREATE_BATCH_ID exists in form FAXMADDS.
        Why is this error? Why it is referring to G_QUERY_FIND which i have not at all used?
    Thanks
    Manu
    Message was edited by: manu.mur

    Hi Hussein,
    Clearing cache or bouncing application did not help. And now i am noticing that the value of this attribute does not change according to the changes i make in workflow builder.
    Also, i tried by updating the workflow attribute from Workflow Admin, retried the notification and tried the link again. No help.
    I tried updating attribute to just the standard form function name, still same errors!

  • UME attribute mapping for lastpasswordchange to AD

    We are on EP 7.0 and are using Microsoft Active Directory 2003 as our user repository.
    I am using a writeable datasource configuration file to update passwords in AD from portal (SSL configured)
    For users who had password reset done through the portal, portal has the information for "Date of Last Password Change".
    However, for users who do password resets with other mechanisms (outside of SAP portal), portal does not have this information.
    I am trying to map the UME logical attribute "lastpasswordchange" to the corresponding physical attribute on Active Directory - which I believe is "pwdLastSet".
    My XML configuration looks like the following
    <dataSource id="CORP_LDAP"
             <responsibleFor>
                  <principal type="account">
                       <nameSpace name="com.sap.security.core.usermanagement">
                            <attribute name="j_user"/>
                            <attribute name="logonalias"/>
                            <attribute name="j_password"/>
                            <attribute name="userid"/>
                            <attribute name="lastpasswordchange"/>
                       </nameSpace>
                       <nameSpace name="com.sap.security.core.authentication">
                            <attribute name="principal"/>
                            <attribute name="realm"/>
                            <attribute name="domain"/>
                       </nameSpace>
                  </principal>   
                  <principal type="user">
                  </principal>
                  <principal type="group">
                  </principal>
             </responsibleFor>
             <attributeMapping>
                  <principal type="account">
                       <nameSpace name="com.sap.security.core.usermanagement">
                            <attribute name="j_user">
                                 <physicalAttribute name="samaccountname"/>
                            </attribute>
                            <attribute name="logonalias">
                                 <physicalAttribute name="samaccountname"/>
                            </attribute>
                            <attribute name="j_password">
                                 <physicalAttribute name="unicodepwd"/>
                            </attribute>
                            <attribute name="userid">
                                 <physicalAttribute name="*null*"/>
                            </attribute>
                            <attribute name="lastpasswordchange">
                                 <physicalAttribute name="pwdLastSet"/>
                            </attribute>
                       </nameSpace>                  
                    </principal>
                  <principal type="user">
                       <nameSpace name="com.sap.security.core.usermanagement">
                            <attribute name="firstname">
                                 <physicalAttribute name="givenname"/>
                            </attribute>
                  </principal>
             </attributeMapping>
             <privateSection>              
             </privateSection>
        </dataSource>
    However the above configuration doesn't work. I am not able to read the attribute "pwdLastSet" from AD using attribute mapping.
    Can some one please suggest what I am missing ?
    Thank You,

    You may google "pwdLastSet convert" a try to find out some scripts to convert pwdLastSet to another timestamp.
    As I got from some Google's [links|http://anothersysadmin.wordpress.com/2010/10/22/convert-pwdlastset-to-a-human-readable-date/] pwdLastSet it counts time in nanoseconds.
    Consult you MS Active Diractory team for help to create the converting script of create another attribute in AD with the format that match the portal's timestamp. Then you'll map  the new AD attribute to the "lastpasswordchange" attribute of the portal.
    Regards, Mikhail.

Maybe you are looking for

  • How do i back up my macbook pro to an external hard drive?

    how do i back up my macbook pro to an external hard drive?

  • I have a playlist of tracks that are not in my music library

    It is my understanding that all of your music resides within your Music Library and from there you can create playlists, whether Smart Playlists or just Playlists, but your playlists do not contain anything that isn't in your main Music Library. I ha

  • Permissions in InDesign CS6

    We are now using a Mountain Lion server after a major breakdown of our SL server and all permissions are showing the files are at read write. Working on the Network we create a file in InDesign CS6 and save the file, all opens correctly after saving.

  • Posting Periods SAP Business One

    To whom may concern... Hello everyone, I have a concern with the posting periods, I have this client that all the time the posting periods has been created by month (12 different periods), today by mistake they create the new period by year of 2009-

  • ALL Attributes/Methods of FIELD and DICTIONARY

    I am looking for a listing of ALL attributes/methods of fields and dictionaries and forms and afc's if possible, above and beyond what is written in the newScale ISF guide. Is this comprehensive list avalable?