How to set category and category attributes through BPEL?

Greetings.
I have seen ContentServices SDK, and tried to build own BPEL process which should make this work.
But there is exception when authenticate to OID. If i not place password attribute to ContentServices.login method, there is exception like "Unable to retrieve application credentials from OID".
If I place password, then exception is following: "Cannot uthenticate user using clear text password".
In ContentServices web services SDK is example, called "ApplyDocumentTypeCategory", where in GetUserName assign activity you copy value of "/ns3:IFSQUEUEMESSAGE/PARAMETERLIST/PARAMETERLIST_ITEM[NAME='CONNECTASUSER']/VALUE"
to connectasuser variable. What should contain this variable?
If anybody knows how to solve this, please help.
Thank you.

BPEL process finished without any errors, but there is no results in document category
here is function which call addCategoryAttributeValue. in Java Embedding activity seems it executes, but variable result not updated after executing this function.
public String perform(ContentServicesSession session) throws Exception
String result=new String("BEGIN");
try
result=result.concat("1");
Item[] documents = WorkflowUtils.getTargetDocuments(session,
mWorkflowid);
result=result.concat("2");
int len = (documents == null) ? 0 : documents.length;
for (int i = 0; i < len; i++)
result=result.concat(Boolean.toString(WorkflowUtils.addCategoryAttributeValue(session,
documents,
mCategoryName,
mAttributeName,
mAttributeValue)));
catch (Exception e)
result=result.concat(e.getMessage());
finally {
session.logout();
return result;
and here is piece of code where i call this function(Java Embedding activity):
CategoryTest action = null;
String res="";
try
//get the workflow id.
String workflowid =(String) getVariableData("workflowid");
String filesEndPoint = "http://myhost.com:7778/content";
String user = (String) getVariableData("username");//username=orcladmin#welcome1
java.net.URL u = new java.net.URL(filesEndPoint);
// get the workflow parameters
String categoryname = (String) getVariableData("categoryname");
String attribname = (String) getVariableData("attribname");
String attribvalue = (String) getVariableData("attribvalue");
//String documenttype = (String) getVariableData("documenttype");
// get the PartnerLink.
com.collaxa.cube.engine.types.bpel.CXPartnerLink
plink = (com.collaxa.cube.engine.types.bpel.CXPartnerLink)
getVariableData("GetDataFromCS");
res +="|connected";
// Create a Content Services Session.
ContentServicesSession session =
ContentServicesSession.login(plink,filesEndPoint,user,"");
res +="|logged in";
// Run the java helper class.
action = new CategoryTest(workflowid);
action.ApplyCategoryValue(categoryname, attribname, attribvalue);
res+="|applied attributes";
// Perform the workflow operatio using the given session.
res += action.perform(session);
res+="|action performed";
setVariableData("exception", res);
catch(Throwable ex)
setVariableData("exception", ex.getMessage());
after executing this code, variable "exception" has following value: |connected|logged in|applied attributes|action performed
I don't know what to do, plase advice me.
Thanks,
Konstantin

Similar Messages

  • How to get Capacity And Custom Attribute Data Through Powershell

    how to get Capacity And Custom Attribute Data Through Powershell

    Hi Nitesh,
    Great command from Martin.
    Also find a article to configure the Quota:
    http://technet.microsoft.com/en-us/library/aa998353(v=exchg.141).aspx
    Thanks
    Mavis Huang
    TechNet Community Support

  • How to set up and configure AirPort Express for AirPlay and iTunes

    Saw somewhere that supposedly there were some apple written guidlines on the above topic. I have searched all over for them. Anyone know where I can get a copy to read through. Just trying to educate myself a bit and sety up another room with access to itunes, radio, etc with high quality speakers and amp off my express.

    Here you go ...
    How to set up and configure AirPort Express for AirPlay and iTunes

  • How to set-up and use FAMILY Sharing

    Can someone please explain to me in detail how to set-up and use FAMILY Sharing, none of the information I have so far found in the documentation helps at all, in fact it puts you in a constant loop giving the same information over and over again
    We have quite a few devices from ipads, iphones and ipods and I need to set-up Family Sharing.
    We have our main Apple ID which is linked to our Payment method, I have now got my son a new iPad, I have created his Apple ID and set-up a link via FAMILY Sharing to our main Apple ID.
    From what I read we should be able to share our purchased Apps between family members.
    So I figured I would be able to get the Apps now via iTunes that are part of the FAMILY Sharing, however when I go into ITunes (latest version downloaded yesterday) I can only see the Home sharing menu item not FAMILY Sharing, so I cannot work out in Itunes how to get Apps that are FAMILY shared.  So ok I will try and get Apps directly via the Ipad using the App Store.  To test it is working I look for a known paid for App, I then go to download it and it is now asking me to pay for it again. 
    Can someone please explain to me in detail how FAMILY Sharing is supposed to work and how I get it to work please.
    Thanks for your help
    Greg

    Hey GregWr,
    Thanks for the question. The following resources provides some of the best information regarding Family Sharing. Included, you’ll find information on making sure the accounts are set to "Share my purchases”, as well as information on downloading Family Member purchases from the iTunes Purchased section. Please note that some applications are not shareable.
    Sharing purchased content with Family Sharing - Apple Support
    http://support.apple.com/en-us/HT201085
    Which purchased content can I share using Family Sharing - Apple Support
    http://support.apple.com/en-us/HT203046
    If you don't see your family's shared content - Apple Support
    http://support.apple.com/en-us/HT201454
    Thanks,
    Matt M.

  • How to set up and use AirPlay

    How to set up and use AirPlay

    Welcome to the Apple Community.
    AirPlay; When watching suitable content on the iPad, tap the screen to bring up the controls, tap the AirPlay icon and select the Apple TV. The content will then stream to the Apple TV.
    Mirroring; Double tap the home screen button, swipe the application panel to the right, tap the AirPlay icon and choose the Apple TV. The iPad screen will then be streamed to the Apple TV.

  • How to get nodes and its attributes of an XML file usiong DOM parsing?

    how to get nodes and its attributes of an XML file usiong DOM parsing?
    i am new to XML parsing.......
    Thanking you........

    import org.w3c.dom.Document;
    import org.w3c.dom.*;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.DocumentBuilder;
    import org.xml.sax.SAXException;
    import org.xml.sax.SAXParseException;      ...
    //Setup the document
    DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
         DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
         Document doc = docBuilder.parse (new File("MY_XML_FILE.xml"));
    //get elemets by name
         String elementValue = doc.getElementsByTagName("MY_ELEMENT").item(0).getTextContent();
    //This method can return multiple nodes, in this instance I get item(0) , first nodeRead the api for other methods of getting data.

  • How to set upper and lower limit for service notification in SPRO

    Hello everyone,
    Good morning....!!
    I am new to SAP PM and to SCN as well.
    I have a question on Service notification user status.
    I  have notification profile configured in SAP as below:
    Status no      Status          Short text              Lower limit          Upper limit
    5                  REGD          Registered                1                          70
    10                PCKS            Pack sent                  1                          70
    20                APRC            Application received  1                        70
    etc..
    I want the statusesto be set as  navigation should only allow to go back one by one...like from APRC -->PCKS not to REGD.From PCKS -->REGD etc..not vice versa.
    Can enayone explain me to how to set lower and upper limits for these according ot the above requirement.
    for more details please check my attachment.
    Thanks in advance..!!
    Regards,
    Sudha.

    Once you change the status to previous status, just save the order. Then again open the order & try to change the user status.
    Just I made replica of your profile. I could able to change (even without saving the order).

  • How to identify display and navigational attributes in report?

    To all of thanks to be in SDN, plz send tue clarifications.....?
    Q. How to identify display and navigational attributes in report?  is there any naming convension differences for both of them?

    This works fine for "powerusers", but for informational users you have to create your own naming conventions for all navigational attributes which are not unique. For example 0COUNTRY may be a navigational attribute of 0CUSTOMER, OSOLD-TO, 0SHIP-TO, 0BILLTOPRTY, 0PAYER. To make the text clear for your users in reports name it CS Country, SO Country, SH Country, BT country, ... as 0COUNTRY could also be a characteristic from the document.
    This means quiet some work especially if you have a multilingual installation, but the information users will be very thankful.
    hope this helps
    mich

  • How to set date and time on apple tv

    how to set date and time on apple tv

    Assuming this is not the first time you have used your Apple TV
        1.    You might try restarting the Apple TV by removing ALL the cables for 30 seconds.
        2.    Also try restarting the router.
        3.    If the problem persists, try a restore, you may want to try the previous procedures several times before doing this.
    If this is a new Apple TV, it may also be that your network router is not allowing access to the timeserver, check that your router allows access over port 123.

  • How to set datapackage and  Idoc

    Hi
    could any body  tell me , How to set datapackage and Idoc in sap bw

    Hi Hari,
    There are 2 additional places to make these settings global:
    1) Transaction SBIW on BW for SAP Source systems:
    Data Transfer to the SAP Business Information Warehouse ->
    General Settings -->
    Maintain Control Parameters for Data Transfer
    2) Transaction SPRO on BW for non-SAP Source Systems:
    SAP Customizing Implementation Guide -->
    SAP NetWeaver -->
    SAP Business Information Warehouse -->
    Links to other systems -->
    Maintain Control Parameters for the data transfer
    Please note the paths are from a BW 3.5 system.
    Kind regards,
    Dorothy

  • How to run mrp and capacity leveling through heuritics.

    Hi,
    How to run mrp and capacity leveling through heuritics.
    What are the setps required for production planning run this thing in the heuritics in pp/ds?
    Regards,
    Sunil

    Sunil,
    APO PP/DS doesn't have a 1-to-1 match for MRP/Cap levelling per se.  There are, though, a limitless number of ways to achieve the results you want.
    Start with a basic PP planning MRP - SAP_PP_002, which will should create all necessary planned orders
    Then try a DS heuristic to schedule your orders according to capacity.  Schedule Sequence SAP001 is a good starting point.  This can be used to schedule your cap relevant work centers such that they fully load the capacity available, similar to cap levelling.
    Rgds,
    DB49

  • How to manage pulp and paper  processing through SAP

    Hi...
    please let me know how to manage pulp and paper  processing through SAP-PP in details......
    or please provide sum links where i can get the solution....
    regards,
    sandeep.

    Hi Ema,
    you need to ensure in your BAdi implementation that the records do not overlap. Ideally (for performance reasons) you also keep the number of records in RPM_BUPA_AVL low
    i.e. one record for 01.Jan to 05 Jan with 8 hours is better compared to 5 records with 8 hours each.
    Best regards
    Thorsten

  • How can i send and recieve mail through java

    HI All,
    plz let me know how can i send and receive mail through java.
    Regards:
    sachin kakkar
    http://www.datamansoftwares.com

    Using java mail API..
    try to search the forum for java mail... you find many question and answer.
    use the left search textfield

  • How to set WebLogic Plug-In Enabled through admi in weblogic server 9.2

    Hi,
    how to set WebLogic Plug-In Enabled parameter for cluster through admin console in weblogic server 9.2 ???
    Actually i could able to find the option for individual servers. However i could not able to find the same for cluster??
    is it through only by WLST ???
    can any one please advice??
    regards,
    Praveen Kumar J

    Well, I don't know what you call a "BEA Admin", but please note that everyone here is trying to help.
    Some of them are not working for BEA but are deeply efficient.
    Well, for your problem, I started a 9.2.2 domain, created a cluster and found the "WebLogic Plug-In Enabled" option ...
    In your console, in the "Domain Structure" window, click myDomain \ Environment \ Clusters
    Then in the main page, you've got "Settings for myCluster".
    On the very first page, "Configuration > General" tab, you should have the folliowing attributes :
    * Name
    * Default Load-Algorithm
    * Cluster Address
    * Number of Servers In Cluster Address
    Go at the bottom of the page and under the last link "Number of Servers In Cluster Address", you have a little "Advanced" link in blue. Click on it and it will expand another part of the page.
    In that new part, you'll find new attributes and the one you're expecting.
    This time, it should definitely help.

  • How to set border of excel cell through ole ?

    How to set border either of left / right / top / bottom of excel cell through ole ?

    Click on the outside the line above header and select all the columns and rows and set the border horz and vert this will solve your problem. if you select current data alone then it will select the current data alone borders. if you runa diff criteria then for the new values borders wont be there. so better always try selecting the column top i.e above the column header and set the border.

Maybe you are looking for

  • Iphone Remote App with Linksys having problems

    Okay I have a Linksys Wirless Router, my Laptop and iphone connect to the linksys via wireless using WPA, the wireless works great, I get my iphone hooked to the wireless network .. check stocks, weather, google around.. all that works ! I use my Rem

  • Can't get printer to work

    I have a new Dell laptop with Windows 7 on a wireless network and I want to print on a HP laserjet 1320 connected to another computer on the network. My laptop sees the 1320, but cannot print. The error message says "Windows cannot connect to the pri

  • Unable to boot from hard drive or install dvd

    Out of the the blue my powerbook won't boot up. I've tried to reset the PRAM, I've tried to verbose thing but all it said was that it couldn't establish a connection to the windowserver. I've even tried to power on holding the option key but the hard

  • Plays fine in IMOVIE and IDVD but disk doesn't play right in home DVD Playe

    I created a movie in IMovie and it plays fine there. I converted it to IDVD and it plays fine there, but when I burn the actual DVD, it takes 12 hours! and then it won't play on my home DVD player. (It starts out fine, shows the menu and has the movi

  • Finished DVD doesn't start with opening menu

    Hi: I burned a 15 minute film after composing it in iMovie, adding chapters in Garageband, and editing it in iDVD. All went well, and the final results looks pretty good. However.....when I play the DVD, it starts at a different point, plays an inser