Assigning a ROLE dynamically in PAPI

Hi, I've got a need to create an instance of a process and assign the ROLE to the instance dynamically through PAPI.
I know how to create the instance, but not to assign a ROLE to it dynamically.
Does anyone know how to do this?

Hi,
The right way to implement this use case, is to use parametric roles. Instead of creating a regular role, you can place an activity (let's say an interactive activity) in a parametric role. Parametric roles have the particularity that they need to be linked to a process instance variable of type String. This String value can be set dynamically and at runtime even with a value coming as an input argument to the process through the process instance creation.
So your process pattern could look something like this:
Begin -> Automtic -> Interactive (in a parametric role referencing the String instance variable called paramRoleValue) -> ...
The Automatic activity method implementation could have something like:
paramRoleValue = "part1"
// We assume the participant that will have visibility is also identified somehow into a process instance variable (at least it userid)
// Use logic to use the Fuego.Fdi.DirOrganizationalRole + Fuego.Fdi.RoleAssignment to dynamically assign the parametric role with the value "part1" to the target participant(s).
HTH,
eduardoc.

Similar Messages

  • Reg:Assigning users to roles dynamically

    Hi all,
       i've different set of users for whom i can assign the roles based on their functionality. But the thing is that i can create them  and add delta links in the portal. But i don't want to do this  as manually .. and let me know in detail UME...
    Can we assign roles to users based on some logic or conditions.If yes ...Please direct me how to do it..
    Reply awaited....
    Regards,
    sitara
    Edited by: sitara kola on Mar 8, 2008 2:47 PM

    I do not know if this works for you but you can use virtual groups to automatically assign users to groups. Say you want to group users by department. Create virtual groups for the department attribute. Then assign the roles you want to assign to the marketing virtual group and the sales virtual group. When you create a new user and assign them to the marketing department, the user is automatically assigned to the marketing group as recieves the required roles.
    See the documentation: http://help.sap.com/saphelp_nw04s/helpdata/en/43/fcfa2942ed7067e10000000a1553f6/frameset.htm
    -Michael

  • Problems, when creating roles dynamically

    Hi,
    I have an application, in which roles and users are created programatically.
    Now I have an EJB, that wants to call isCallerInRole() for every existing role.
    As I create the roles dynamically, I cannot specify all roles in the deployment-descriptor of the EJB.
    As a result I get a <010013> <EJB "MyBean" referenced an undeclared security role "myRole".> - warning,
    and isCallerInRole() always returns false.
    What do I have to write into the deployment-descriptor, to make the ejb aware of the dynamically created roles?
    Thanks in advance
    Christian Wulff

    What you can do, is create an authorization profile (transaction pfcg) with these objects, and assign them to the user you are using for the trusted connection.
    Kind regards,
    Mark

  • Assigning a query dynamically to a cursor based on IF ELSE condotion

    hello guys,
    we are facing a problem while creating a procedure.
    The procedure has been recreated in ORACLE from SQL SERVER 2005.
    the problem is that in SQL server we can assign a query dynamically to a cursor so that it will be called at execution time.But this is not the case in oracle, i.e in Oracle its not allowed to assign a query to a cursor dynamically(OR IS IT...!!!)
    the code is
    vr_SQL varchar2(400);
    declare
       cursor ord_cur  ;  <-----cursor declaration
      begin
       If v_pIsScrutiny = 0 then   +<--------------second condition+
          vr_SQL:='Select NVL(ServiceID,0)  ServiceID,OrdQty,+<-------query assignment to a variable+
              NVL(DrugID,0) DrugID,NVL(ServiceAmount,0) Rate,OrdDtlID 
              from Orderdtl inner join ordermst on Orderdtl.OrdID = ordermst.OrdID 
              Where Orderdtl.OrdID in (Select OrdID From Ordermst Where OrdVisitID = vr_visitid  
              and TO_CHAR(ordermst.OrdDate,''DD-MON-YYYY'') 
              Between TO_CHAR(vr_pActivationDate,''DD-MON-YYYY'') 
              and TO_CHAR(vr_pExpiryDate,''DD-MON-YYYY'') 
              ) And NVL(Orderdtl.Cancelled,0) = 0 And NVL(Orderdtl.PackageID,0) = 0 
              and NVL(Orderdtl.DrugID,0) = 0;';
        Else  +<--------------first condition+
            Update OrderDtl Set PackageID = 0 , AllocationID = 0 , ConsumptionID = 0 
            Where OrdID in (Select OrdID From Ordermst Where OrdVisitID = vr_visitid)  
            And AllocationID = v_pHCPAllocationID; 
           vr_SQL:= 'Select NVL(ServiceID,0)  ServiceID, +<-------query assignment to a variable+
           OrdQty,NVL(DrugID,0)  DrugID,NVL(ServiceAmount,0)
            Rate,OrdDtlID 
           from Orderdtl inner join ordermst on Orderdtl.OrdID = ordermst.OrdID 
           Where Orderdtl.OrdID in (Select OrdID From Ordermst Where OrdVisitID = vr_visitid  
           and TO_CHAR(ordermst.OrdDate,''DD-MON-YYYY'') 
           Between TO_CHAR(vr_pActivationDate,''DD-MON-YYYY'') 
           and TO_CHAR(vr_pExpiryDate,''DD-MON-YYYY'') 
           ) And NVL(Orderdtl.Cancelled,0) = 0 And NVL(Orderdtl.PackageID,0) = 0;'; 
        end if;
           ord_cur is vr_SQL; +<----------query assigned to a cursor variable+
        ord_rec ord_cur%ROWTYPE;
       if not ord_cur%ISOPEN then
            open ord_cur;
       end if;
        loop
        fetch ord_cur into ord_rec;
        exit when ord_cur%NOTFOUND;So currently we are stuck with this problem.
    Any solution would be of great help..
    thank you

    841363 wrote:
    hello guys,
    we are facing a problem while creating a procedure.
    The procedure has been recreated in ORACLE from SQL SERVER 2005.
    the problem is that in SQL server we can assign a query dynamically to a cursor so that it will be called at execution time.But this is not the case in oracle, i.e in Oracle its not allowed to assign a query to a cursor dynamically(OR IS IT...!!!)The problem is that you are thinking in SQL Server terms and Oracle just isn't SQL Server.
    You need to consider using ref cursors for such things (sys_refcursor) e.g.
    SQL> CREATE OR REPLACE PACKAGE reftest IS
      2    PROCEDURE test(P_no in number, cur_o OUT sys_refcursor);
      3  end;
      4  /
    Package created.
    SQL>
    SQL> CREATE OR REPLACE PACKAGE body reftest as
      2    PROCEDURE test(P_no in number, cur_o OUT sys_refcursor) as
      3      myexc exception;
      4    BEGIN
      5      if P_no = 1 then
      6        open cur_o for select empno, ename from emp;
      7      elsif p_no =2 then
      8        open cur_o for select deptno, dname from dept;
      9      else
    10        RAISE myexc;
    11      END IF;
    12    exception
    13      when myexc then
    14        raise_application_error(20991,'input must be 1 or 2');
    15    end ;
    16  end reftest;
    17  /
    Package body created.
    SQL> var x refcursor;
    SQL> exec reftest.test(1,:x);
    PL/SQL procedure successfully completed.
    SQL> print x;
         EMPNO ENAME
          7369 SMITH
          7499 ALLEN
          7521 WARD
          7566 JONES
          7654 MARTIN
          7698 BLAKE
          7782 CLARK
          7788 SCOTT
          7839 KING
          7844 TURNER
          7876 ADAMS
          7900 JAMES
          7902 FORD
          7934 MILLER
    14 rows selected.
    SQL> exec reftest.test(2,:x);
    PL/SQL procedure successfully completed.
    SQL> print x;
        DEPTNO DNAME
            10 ACCOUNTING
            20 RESEARCH
            30 SALES
            40 OPERATIONS
    SQL>

  • Assigning database roles on SQL Server db

    I am trying to set up a SQL Server adapter (not a database table adapter for SQL tables) to manage role assignment on a database 'test1' on my sql server ( 2000) 'sqlserver1' using IdM 7.1. I am trying to assign role1 to user tuser1 on test1. I am using 'sa' account so permissions should not be an issue.
    Per resource reference document, I mapped:
    userNametest1 <-> userNametest1
    rolestest1 <-> rolestest1
    My login for user 'tuser1' gets created on the SQL server. However the database and role assignment is not happening. I do not get any errors in the IdM admin pages from where I am testing this. Hence I am assuming I am not setting something right in the resource schema. I have tried different ways such as
    userNametest1 <->userName
    rolestest1 <-> roles
    and some more combination but none seem to work. How can i find out what my resource attribute mapping should be? If anyone has done this, can you please share how you got it work?
    Thanks in advance.

    Some more info.
    I have set up the out of the box MS SQL server adapter to connect to MSDE version of SQL server running on my local machine. I used the MSSQLServer Form provided in the samples folder and assigned it to an admin user and turned on the trace.
    I am able to create logins by assigning the resource to a user. Using the admin user I am able to see in the trace that the server Roles are also being retrieved fine. What I am not able to get is assigning a database to the user and then assigning db roles.
    Following the documentation (Resource Reference guide for IdM 7.1) I have created following attributes on the left hand side of schema.
    defaultDB,serverRoles,domain, userNameMyTestDb,rolesMyTestDb.
    No matter what I map the last two attribute I am not able to assign a db and dbroles to a user. I turned on sql profiler and then again used the admin user to view a test user using MSSqlServer form and it appears that the procedure sp_databases is not being called at all. I have decompiled the sql server class file and it appears there might be an issue with the way list of databases is being retrieved.
    Has any one seen this before? If you were able to get it to work, can you please give me information on the resource schema and any other settings you had to make to get it to work?
    Thanks in advance.

  • Portal Runtime error in assigning a role to a user by UME

    Hi ALL,
    I am assigning a role to a user through UME using this piece of code:
    String uids = userFactory.getUserByUniqueName("Shilpa").getUniqueID();
    String roleid = roleFact.getRoleByUniqueName("pcd:portal_content/administrator/content_admin/content_admin_role").getUniqueID();
    roleFact.addUserToRole(uids,roleid);
    The userid and role is beinf fetched successfully but at the assignment of the role to the user , I am gettign Portal runtime error.
    The error log is following.
    <b> java.lang.NoClassDefFoundError: com/sap/abc/network/util/InfEPLog
         at UserListeners.userAssigned(UserListeners.java:27)</b>
         at com.sap.security.core.imp.RoleFactory.assignUserPerformed(RoleFactory.java:1466)
         at com.sap.security.core.persistence.imp.DistributedTransaction.doCacheUpdateAndNotificationForMembers(DistributedTransaction.java:565)
         at com.sap.security.core.persistence.imp.DistributedTransaction.doCacheUpdateAndNotificationForMembers(DistributedTransaction.java:815)
         at com.sap.security.core.persistence.imp.DistributedTransaction.doCacheUpdateAndNotification(DistributedTransaction.java:465)
         at com.sap.security.core.persistence.imp.DistributedTransaction.afterCompletion(DistributedTransaction.java:252)
         at com.sap.engine.services.ts.jta.impl.TransactionImpl.commit(TransactionImpl.java:414)
         at com.sap.engine.services.ts.jta.impl.TransactionManagerImpl.commit(TransactionManagerImpl.java:316)
         at com.sap.engine.services.ts.transaction.TxManager.commitLevel(TxManager.java:581)
         at com.sap.engine.services.ts.transaction.TxManagerImpl.commitLevel(TxManagerImpl.java:63)
         at com.sap.transaction.TxManager.commitLevel(TxManager.java:237)
         at com.sap.security.core.persistence.imp.DistributedTransaction.commit(DistributedTransaction.java:2742)
         at com.sap.security.core.imp.Role.commit(Role.java:337)
         at com.sap.security.core.imp.RoleFactory.addUserToRole(RoleFactory.java:1338)
         at com.sap.user.UserAdded.doContent(UserAdded.java:63)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.doPreview(AbstractPortalComponent.java:240)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:168)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
         at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
         at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:645)
         at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
         at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
         at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
         at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
         at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:524)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:407)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
    Please tell me where I am wrong.
    Regards,
    Shilpa.

    Hi Shilpa,
    The error "java.lang.NoClassDefFoundError" means that your classpath is not set correctly. This is likely due to a missing reference. The class file may be in the jar, but at runtime the component (your component) needs to have access to the jar file which contains the class.
    Try adding the servlet.jar, activation.jar file in your project and also through your ADd external libraries at 'java build path'. also please ensure tht WAS and NWDS at the same SP level.
    Hope this might help you.
    Regards,
    Shaila

  • Error while trying to assign a role via CUP in Portal

    Hello Experts,
    I am trying to  create a request to assign a role in EP via CUP ( 5.3)
    EP Connector is working fine as I have imported Portal roles etc
    SPML service is working fine
    I have done the  mapping in the Provisioning tab for Portal system
    logonname in portal is email address of an employee
    So the I have done the following mapping
    AC Field                             Application field
    email addres-Stndard       logonname
    And I have the following error while trying to create a request which I grabbed form the log
    ERROR Exception during EJB call, Ignoring and trying Webservice Call
    LinkageError: loader constraints violated when linking com/virsa/cc/xsys/webservices/dto/WSRAInputParamDTO class
    ERROR com.virsa.ae.core.BOException: Exception from the service : Invalid System
    com.virsa.ae.core.BOException: Exception from the service : Invalid System
    ERROR : BO Exception in Save request
    Any suggestions would be really appreciated
    Regards
    Kev

    Kevin,
    I was able to replicate your issue and there is a setting in the CUP that you have to disable, Goto the config tab in the CUP and select NO for the "Risk Analysis On Request Submission " under risk analysis.
    Issue here is you did not create a connector for your EP in the RAR, I believe you have the above mentioned parameter to yes and so when you are submitting a request CUP is trying to do the risk analysis but RAR was not able to find any System, so it is thowing an error.
    You can resolve this issue in two ways, one is to create a connector in RAR or the other is to disable the setting in the CUP.
    Hope this helps.
    Naveen

  • Assign a role automatically based on resources assigned to the user?OIM 11g

    Hi,!
    i have a request and this is:
    in my scenario i have roles associated with access policies that assign resources .
    i have resources assigned by a target reconciliation ... what i need is assign a role based on resources that the user has..
    if the user has 4 resources added by a target reconciliation and these 4 resources make a role then the role has to be assigned automatically...
    any idea?? this is possible?? thnx..

    any idea?? ... this is possible??

  • GRC 10 EAM - Unable to assign Firefighter roles to owners

    Greetings SAP gurus,
    I am currently on a new GRC 10 installation and having issues with the Emergency Access Management (EAM) component previously known as FireFighter or SPM.  Note: We are trying to implement the Firefighter ''Role-Based" Approach.
    Issue: We are unable to assign EAM roles to owners within NWBC. Click on 'Assign owners to Firefigher ID's and provision Firefighter ID's to firefighters' via the Access Management Tab within NWBC, option Superuser Assignment. Click on Assign.  We are able to find the owners, but when I search for roles to assign, I get the error, 'No records found for the search criteria entered''.
    We are on SP7.
    Items completed:
    1) All post installation tasks were completed correctly, i.e. BC sets activated, connector groups created and working.
    2) EAM roles created on target system and imported via BRM.
    3) EAM role properties edited for "Firefighting' usage in BRM, role owners defined, functional areas defined, business process and sub process areas defined.
    4) Access control owners (i.e. role owners and controllers) defined.
    5) The ID being used for configuration is currently assigned all GRC_NWBC roles available.
    6) The connector groups are working fine and we are using for the Access risk Analysis component which is working fine.
    7) The post EAM configuration steps has been completed.
    Has anyone else experienced a similar issue?  I look forward to your responses.
    Rgds,
    Prevlin Moodley

    Hello Prevlin,
    Are you using a FF role owner for the assignment. This might be helpful:
    [Note 1289579 - Firefighter Owner additional authorization for Role based FF|https://service.sap.com/sap/support/notes/1289579]
    Cheers,
    Diego.

  • Assign Application Roles

    Hi All,
    I am new to SOA and I want to know how to assign application roles (Not global roles) through EM Console. As, I am unable to assign the roles through  BPM workspace. I can go to the administrator tab and assign the roles to me. But in the task list I am unable to get the task.
    Thanks and Regards,
    Ram

    Hi Ram,
    Refer this doc:
    http://docs.oracle.com/cd/E24628_01/doc.121/e36415/sec_features.htm#CJADDBGA
    HTH
    Mani

  • Assigning authorization role to position in PP02 (SRM 5.0) not working

    Hi,
    We've run into a problem in our SRM 5.0 system that we're not sure how to solve.
    We defined a role where we only set the BBP_APPROVAL_LIMIT attribute in the Personalization tab. It has no other transaction authorizations.
    When we assign this role to the user directly the user inherits the BBP_APPROVAL_LIMIT as expected.
    When we attempt to assign this same role to a position through PP02 and run the PFUD, the attribute values are not transferred to the user personalization attributes.   Doesn't matter what we do, we can't seem to be able to get it to work.
    Does anyone one have any experience with this that they could share?
    Regards,
    Jerry Martinek

    Hello Yann,
    Thank you for the reply.
    This is one of the things that I'm trying to confirm which is whether it can be done. I was told that it does work and that they use PP02. But as we can't get it to work I wanted to know if anyone else is using this process and if yes, how do you do it.
    If people mainly use the explicit user assignment via PFCG, do they manage it manually or systematically?
    Thanks,
    Jerry

  • Assigning the role to the group using MAXL

    Hi,
    We are using Essbase 11.1.1.3 and Hyperion Financial Reports 11.1.13.
    I have created a role called "Standard_user_HFR" in shared Services and assgined Explorer and viewer to the role and i need to assign the role to the groups and i have around 1600 groups to which i have assign the role. Is there any Maxl Script to assign the role to the groups. As of now i am manually adding the role to the group.
    Regards,
    VJ

    Also look into Aggregated Roles to possibly reduce the number of Groups.
    Oracle states:
    Aggregated roles, also known as custom roles, aggregate multiple predefined application roles. An aggregated role can contain other aggregated roles. For example, a Shared Services Administrator or Provisioning Manager can create an aggregated role that combines the Planner and View User roles of a Oracle Hyperion Planning, Fusion Edition, application. Aggregating roles can simplify the administration of applications that have several granular roles. Global Shared Services roles can be included in aggregated roles. You cannot create an aggregated role that spans applications or products.
    Thank you,
    Todd Rebner

  • How to get the obiee dashboard secuirity in adf to assign the roles in adf for users

    how to get the obiee dashboard secuirity in adf to assign the roles in adf for users

    thanks Benjamin...
    my present requirement is pull Role to Dashboard mapping from OBIEE Catalog
    in my project we are going to restrict the users and assigning the roles from adf.
    Pls Help me..

  • Assigned User Role Mirgation from EP 6.0 SP2 to SAP NW2004s (EP 7.00 SP7)

    Our users are stored in LDAP and their role assignment is driven by the roles assigned to the groups. For example...
          Manager Group : MSS and other role assigned
          Employee Group : ESS and other role assigned
    but some users are assigned additional roles not driven through groups, for example, some manager may have business specific reporting role assigned to them. In this case, the assigned role did not move to EP 7.0 because the role assignment information is stored in the portal database (Oracle)  for EP 6.0 SP2 and the new EP 7.0 portal database (Oracle) does not have that information since we did not use migration tools for the upgrade.
    Is there any way I can extract the roll assignment information from EP 6.0 SP2 and upload them to EP 7.0 database since both environments have identical roles and we are using the same LDAP for both environments ??

    Our users are stored in LDAP and their role assignment is driven by the roles assigned to the groups. For example...
          Manager Group : MSS and other role assigned
          Employee Group : ESS and other role assigned
    but some users are assigned additional roles not driven through groups, for example, some manager may have business specific reporting role assigned to them. In this case, the assigned role did not move to EP 7.0 because the role assignment information is stored in the portal database (Oracle)  for EP 6.0 SP2 and the new EP 7.0 portal database (Oracle) does not have that information since we did not use migration tools for the upgrade.
    Is there any way I can extract the roll assignment information from EP 6.0 SP2 and upload them to EP 7.0 database since both environments have identical roles and we are using the same LDAP for both environments ??

  • Assigning the role to user - not getting the page and tabs showing.

    I have a role with a page that contains 2 demo iviews.  They preview ok. but when I assign the role to user, it does not come up.  Could some one send me a help document for SP2?

    I got it.  Need to set Entry Point - Yes.

Maybe you are looking for

  • Smart Resizing not working for RDWEB Published desktop

    I have a working RDS deployment, I am able to change the screen resolution of the published desktops both in powershell and registry. However if I add the 'smart sizing' option, this does not get published in the .rdp file. I have added the entries i

  • Photoshop CS5 Print Printing problem: print count and print to ICC profile

    Since Adobe still haven't acknowledge the printing issue with CS5, I start this thread to report my own problems. Problem 1: print copy count is not working. The first print is always one print regardless how many copies you set in the dialog window.

  • How do I get my ipad to include all of a website that is too big for the ipad screen?

    how do I get my ipad to show a complete website on the screen? my ipad screen is not showing the right sidebar of my son's school website and that side is where you access the wiki sites. many thanks for any help out there.

  • Airport Express dropping out

    I am using an airport express to join my network and have connected a network printer to it using and ethernet cable. I have previously used this airport express to connect a windows PC and never had a problem. I recently purchased an iMac to replace

  • Log version status does not change

    Hi, For a synchronous scenario, I'm getting the status as 'Log Version' in sxmb_moni and the status doesnot change at all.  Can you please let me know the reason for this and how the message status can be changed to successful. Thanks Sreenivas