UWL tasks using API

Hi all,
I am trying to create UWL tasks from webdynpro using the UWL API. but i am not able to do so.
I am using the below code for it.
IPushChannel push = uwlService.getPushChannel();
IProviderConnector connectors[] = uwlService.getRegisteredProviderConnectors();
int thisConnector = 0;
for(int j=0; j<connectors.length; j++){
x.reportSuccess(connectors[j].toString());
if(connectors[j].getId().equalsIgnoreCase(IProviderConnector.WEBFLOW_CONNECTOR_ID))
thisConnector = j;
if(thisConnector > 0) {
Item item =new Item(
IProviderConnector.WEBFLOW_CONNECTOR_ID,
"USER.R3_DATASOURCE.INABBEPSKA",""+new Date().getTime(),
"USER.R3_DATASOURCE.INABBEPSKA "
item.setDescription("This describes a task created at "+new Date().getTime());
item.setUser("USER.R3_DATASOURCE.INABBEPSKA");
item.setSubject("This was generated at "+ new Date().getTime());
item.setItemType(ItemType.UWL_ITEM_TASK_EXECUTABLE);
item.setCreatedDate(new Date());
item.setDueDate(new Date());
item.setCreatorId("USER.R3_DATASOURCE.INABBEPSKA");
item.setStatus(StatusEnum.NEW);
item.setExternalObjectId("2");
// item.setExternalType("AdHocTask");
Set users = new HashSet();
users.add("USER.R3_DATASOURCE.INABBEPSKA ");
push.pushSharedItem(
connectorsthisConnector,
item,
users
} catch (Exception e) {
x.reportSuccess(e.toString());
Where am i going wrong!!!!!!!!!!
the tasks are not being created in UWL iview.
Regards,
Sudheer.

Hi Sudheer,
I have used the below code to create a task in the UWL, u can try with this code,
try
          IUser creator = null;
                     IWDClientUser clientUser  =  WDClientUser.getCurrentUser();
                     sapUser = clientUser.getSAPUser();
          creator = sapUser;
          IJWFPortalService service =     (IJWFPortalService) PortalRuntime.getRuntimeResources().getService(IJWFPortalService.KEY);
          IWorkflow eWF = service.getWorkflowEngineJMS();
          Hashtable taskCtxt = new Hashtable();
          taskCtxt.put("_wftemplatename_","QuickTask");
          taskCtxt.put("_wfdescription_","Description of the Task");
          taskCtxt.put("_wftaskassignees_","sapuserid of the assignee");
          taskCtxt.put("_wfdueasap_", "ASAP");
          Hashtable appCtxt = new Hashtable();
          appCtxt.put("mysystem", "SAP_LocalSystem");
          appCtxt.put("mylaunchcontext", "uwl");
          appCtxt.put("myappcontext", "test");
          eWF.createTask("Title of the Task",creator,taskCtxt,null);
     catch (Exception e)
          wdComponentAPI.getMessageManager().reportSuccess(e.toString());
Regards,
Kalaivani

Similar Messages

  • Reassigning of task using API in OIM11g

    HI Folks,
    Can someone help me how to reassign task using API in OIM 11g?
    The request is created and assigned the task to xelsysadm by default.
    I want the task be reassigned to approvers group by retrieving all the pending task of xelsysadm.
    The issue here is tcRequestOperations is no longers works in 11g.
    I checked the RequestService API , it doesnt have a method of reassigning task.
    Are there any ways aside from using API?
    Hope you guys can help me here.
    thanks,

    You'll have to use SOA APIs for the same.

  • OIM 11g - How to run a schedule task using API

    Hi All,
    May I know how i can run a schedule job in OIM 11g through API.I referred the below link but it is for 9.x version.I need the same functionality in 11g?.
    Schedule Tasks
    Thanks in advance.

    Check this :
    SchedulerService schService = oimClient.getService(SchedulerService.class);
    schService.triggerNow("Second Demo Scheduled Task");
    API Reference :
    void triggerNow(java.lang.String jobName)
    throws SchedulerException,
    SchedulerAccessDeniedException
    Runs the specified job
    Parameters:
    jobName - The job that is to be triggered
    Throws:
    SchedulerException - when an error occurs at the Quartz Engine or scheduler is not running.
    SchedulerAccessDeniedException - This exception will be thrown if access permission for operation is not available to the user

  • Reassign a task using API

    Hello,
    I'm trying to make a custom ADF worklist application for BPEL 10.1.3.3.
    I have to add a reassignment feature.
    I've seen the reassignTask(IWorkflowContext context, Task task, java.util.List taskAssignees) of the ITaskService interface. But I cannot create the taskAssignees list (List of ITaskAssignee objects representing the users/groups to reassign the task to). How can I create those ITaskAssignee objects?
    Is there another way to reassign the task?
    Thanks
    Panos
    (always under panic)

    Hi,
    I believe you want to create instances of TaskAssignee (an implementation of ITaskAssignee). e.g.
    ITaskAssignee assigneeUser = new TaskAssignee("istone", false);
    Where parameter 1 is the identity name, parameter 2 a boolean to indicate whether the assignee is a group. In that example we want a user so the flag is set to false.
    You can then populate a List with these objects and send that along as your taskAssignees parameter to reassignTask.
    List assignees = new ArrayList();
    ITaskAssignee assigneeUser = new TaskAssignee("istone", false);
    assignees.add(assigneeUser );
    client.getTaskService().delegateTask(ctx, taskId, assignees);
    I've not tested this as yet, I just happen to be working on something similar right this very moment.
    Rob

  • Fetching Tasks Using UWL API

    Hello Experts,
      Currently we are in the process of retrieving the task items assigned to the logged in User in Portal...We are using UWL API for the same. The problem is that when we create a task through the my Tasks Link in Collaboration, the created task is not getting retrieved.
    Please let us know what could be the reason for this....
    Regards
    Kris

    What was the resolution for your issue?
    I am also using the UWL API to retrieve items.  When I clear the UWL cache, the API reports 0 items even if I have some, however, if I load the UWL page, the API starts to report the correct number of UWL items.  I have tried the functions getItems() and refreshCacheAndGetItems(), but neither seem to work after clearing the UWL cache.

  • Forwarding tasks using UWL

    Hello,
    We are working with EP7 SP13.
    We have problems when we try to forward tasks using the UWL. From main page (without opening the task), we can forward it clicking on the forward button (it displays a new window asking the user ID).
    However, if we open the task and try to forward it, when we click on the forward button, the action does not take effect (it does not display another window asking the user ID).
    We have created new xml configuration files for these tasks, setting their features.
    We have reviewed our xml files but we do not appreciate any error. Where is the problem?
    Thanks in advance,
    Samantha.

    Hi Sumit,
    This is our customized configuration file:
    <UWLConfiguration version="1.0">
      <DescriptionBundles>
        <DescriptionBundle name="corporation_name" default="Actualizar"/>
      </DescriptionBundles>
      <Actions>
        <Action name="viewContent" groupAction="no" handler="UrlLauncher" referenceBundle="view_content" returnToDetailViewAllowed="yes" launchInNewWindow="yes">
          <Properties>
            <Property name="openInNewWindow" value="true"/>
            <Property name="url" value="${item.executionUrl}"/>
          </Properties>
        </Action>
      </Actions>
      <ItemTypes>
        <ItemType name="uwl.task" connector="*" defaultView="DefaultView" defaultAction="viewDetail" executionMode="default">
          <Actions>
            <Action reference="uwlTaskWizard"/>
            <Action reference="priorityLow"/>
            <Action reference="priorityNormal"/>
            <Action reference="priorityHigh"/>
            <Action reference="priorityVeryHigh"/>
            <Action reference="cancelSubprocess"/>
            <Action reference="viewSubProcess"/>
          </Actions>
        </ItemType>
        <ItemType name="uwl.task.webflow.decision.SWF.TS90008264.system_alias" connector="WebFlowConnector" defaultView="webflowView" defaultAction="viewDetail" executionMode="pessimistic">
          <ItemTypeCriteria systemId="system_alias" externalType="TS90008264" connector="WebFlowConnector"/>
        </ItemType>
        <ItemType name="uwl.task.webflow.decision.SWF.TS90008271.system_alias" connector="WebFlowConnector" defaultView="webflowView" defaultAction="viewDetail" executionMode="pessimistic">
          <ItemTypeCriteria systemId="system_alias" externalType="TS90008271" connector="WebFlowConnector"/>
        </ItemType>
        <ItemType name="uwl.task.webflow.decision.SWF.TS90008272.system_alias" connector="WebFlowConnector" defaultView="webflowView" defaultAction="viewDetail" executionMode="pessimistic">
          <ItemTypeCriteria systemId="system_alias" externalType="TS90008272" connector="WebFlowConnector"/>
        </ItemType>
        <ItemType name="uwl.task.webflow.decision.TS00008267.system_alias" connector="WebFlowConnector" defaultView="webflowView" defaultAction="viewDetail" executionMode="pessimistic">
          <ItemTypeCriteria systemId="system_alias" externalType="TS00008267" connector="WebFlowConnector"/>
          <CustomAttributes>
            <CustomAttributeSource id="UM" objectIdHolder="creatorId" objectType="user" cacheValidity="0">
              <Attribute name="firstName" type="string" displayName="First Name"/>
              <Attribute name="lastName" type="string" displayName="Last Name"/>
            </CustomAttributeSource>
          </CustomAttributes>
          <Actions>
            <Action name="viewContent" groupAction="no" handler="UrlLauncher" referenceBundle="corporation_name" returnToDetailViewAllowed="yes" launchInNewWindow="yes">
              <Properties>
                <Property name="openInNewWindow" value="true"/>
                <Property name="url" value="${item.executionUrl}"/>
              </Properties>
            </Action>
          </Actions>
        </ItemType>
        <ItemType name="uwl.task.webflow.decision.TS48907952.system_alias" connector="WebFlowConnector" defaultView="webflowView" defaultAction="viewDetail" executionMode="pessimistic">
          <ItemTypeCriteria systemId="system_alias" externalType="TS48907952" connector="WebFlowConnector"/>
          <CustomAttributes>
            <CustomAttributeSource id="ABAP_BOR" objectIdHolder="externalObjectId" objectType="WFTS" cacheValidity="final">
              <Attribute name="approvby" type="string" displayName="approvby"/>
              <Attribute name="createdate" type="date" displayName="createdate"/>
            </CustomAttributeSource>
          </CustomAttributes>
          <Actions>
            <Action name="viewContent" groupAction="no" handler="UrlLauncher" referenceBundle="corporation_name" returnToDetailViewAllowed="yes" launchInNewWindow="yes">
              <Properties>
                <Property name="openInNewWindow" value="true"/>
                <Property name="url" value="${item.executionUrl}"/>
              </Properties>
            </Action>
          </Actions>
        </ItemType>
        <ItemType name="uwl.task.webflow.decision.TS90007968.system_alias" connector="WebFlowConnector" defaultView="webflowView" defaultAction="viewDetail" executionMode="pessimistic">
          <ItemTypeCriteria systemId="system_alias" externalType="TS90007968" connector="WebFlowConnector"/>
          <CustomAttributes>
            <CustomAttributeSource id="WEBFLOW_CONTAINER" objectIdHolder="externalId" objectType="WebflowContainer" cacheValidity="final">
              <Attribute name="pruContainerWF" type="string" displayName="WF pruContainerWF"/>
            </CustomAttributeSource>
          </CustomAttributes>
          <Actions>
            <Action name="viewContent" groupAction="no" handler="UrlLauncher" referenceBundle="corporation_name" returnToDetailViewAllowed="yes" launchInNewWindow="yes">
              <Properties>
                <Property name="openInNewWindow" value="true"/>
                <Property name="url" value="${item.executionUrl}"/>
              </Properties>
            </Action>
          </Actions>
        </ItemType>
      </ItemTypes>
      <Views>
        <View name="DefaultView" selectionMode="SINGLESELECT" width="98%" supportedItemTypes="uwl.task.webflow.decision.TS90008300.system_alias, uwl.task.webflow.decision.TS90008305.system_alias, uwl.task.webflow.decision.TS90008299.system_alias, uwl.task.webflow.decision.TS90008248.system_alias, uwl.task.webflow.decision.TS90008304.system_alias, uwl.task.webflow.decision.TS90008157.system_alias, uwl.task.webflow.decision.TS90008301.system_alias, uwl.task.webflow.decision.TS90008294.system_alias, uwl.task.webflow.decision.TS90008488.system_alias, uwl.task.webflow.decision.TS90008264.system_alias, uwl.task.webflow.decision.TS90008272.system_alias, uwl.task.webflow.decision.TS90008303.system_alias, uwl.task.webflow.decision.TS90008286.system_alias, uwl.task.webflow.decision.TS90008297.system_alias, uwl.task.webflow.decision.TS90008273.system_alias, uwl.task.webflow.decision.TS90008275.system_alias, uwl.task.webflow.decision.TS90008292.system_alias, uwl.task.webflow.decision.TS90008295.system_alias, uwl.task.webflow.decision.SWF, uwl.task.webflow.decision.TS90008283.system_alias, uwl.task.webflow.decision.TS90008302.system_alias, uwl.task.webflow.decision.TS90008288.system_alias, uwl.task.webflow.decision.TS90008147.system_alias, uwl.task.webflow.decision.TS90008165.SAP_RRHH, uwl.task.webflow.decision.TS90008277.system_alias, uwl.task.webflow.decision.TS90008287.system_alias, uwl.task.webflow.decision.TS48907952.system_alias, uwl.task.webflow.decision.TS90008281.system_alias, uwl.task.webflow.decision.TS90008293.system_alias, uwl.task.webflow.decision.TS90008278.system_alias, uwl.task.webflow.decision.TS00008267.system_alias, uwl.task.webflow.decision.TS90008282.system_alias, uwl.task.webflow.decision.TS90008298.system_alias, uwl.task.webflow.decision.TS90008279.system_alias, uwl.task.webflow.decision.TS90008280.system_alias, uwl.task.webflow.decision.TS90008329.system_alias, uwl.task.webflow.decision.TS90008276.system_alias, uwl.task.webflow.decision.TS90007968.system_alias, uwl.task.webflow.decision.TS90008155.system_alias, uwl.task.webflow.decision.TS90008274.system_alias, uwl.task.webflow.decision.TS90008296.system_alias, uwl.task.webflow.decision.TS90008271.system_alias" columnOrder="statusIcon, attachmentCount, subject, dueDate, priority, creatorId, createdDate" sortby="dueDate:ascend, createdDate:descend" tableDesign="STANDARD" visibleRowCount="10" headerVisible="yes" queryRange="undefined" tableNavigationFooterVisible="yes" tableNavigationType="CUSTOMNAV" actionRef="" refresh="300" dueDateSevere="86400000" dueDateWarning="259200000" emphasizedItems="unread" displayOnlyDefinedAttributes="yes" dynamicCreationAllowed="yes" actionPosition="top" referenceBundle="tasks">
          <DisplayAttributes>
            <DisplayAttribute name="CAMPO1" type="string" width="" sortable="yes" format="medium" hAlign="LEFT" vAlign="BASELINE" maxTextWidth="0" headerVisible="yes">
              <Descriptions default="CAMPO1">
                <ShortDescriptions>
                  <Description Language="es" Description="STATUS"/>
                  <Description Language="en" Description="STATUS"/>
                </ShortDescriptions>
              </Descriptions>
            </DisplayAttribute>
            <DisplayAttribute name="subject" type="link" width="" sortable="yes" format="default" actionRef="viewDetail" referenceBundle="subject" hAlign="LEFT" vAlign="BASELINE" maxTextWidth="0" headerVisible="yes"/>
            <DisplayAttribute name="priority" type="user" width="10" sortable="yes" format="default" referenceBundle="priority" hAlign="LEFT" vAlign="BASELINE" maxTextWidth="0" headerVisible="yes">
              <Menu>
                <MenuItem name="Low" actionRef="priorityLow" referenceBundle="menu_priority_low"/>
                <MenuItem name="Normal" actionRef="priorityNormal" referenceBundle="menu_priority_normal"/>
                <MenuItem name="High" actionRef="priorityHigh" referenceBundle="menu_priority_high"/>
                <MenuItem name="VeryHigh" actionRef="priorityVeryHigh"/>
              </Menu>
            </DisplayAttribute>
          </DisplayAttributes>
          <Actions>
            <Action reference="refresh"/>
          </Actions>
        </View>
      </Views>
      <GlobalDisplayAttributes>
        <DisplayAttribute name="attachmentCount" type="user" width="" sortable="yes" format="default" referenceBundle="attachments" hAlign="CENTER" vAlign="BASELINE" maxTextWidth="0" headerVisible="no"/>
      </GlobalDisplayAttributes>
    </UWLConfiguration>
    Regards,
    Samantha.

  • Getting UWL task count for all users in a role.

    Hi.
    I recently posted a question regarding a very similar issue, but I haven't got any response yet. I think my question might have been somewhat poorly phrased, so I will try to do better at explaining what we need.
    We have a number of processes, most of which need to be dynamically assigned to a user when created. The way we want to assign those tasks is by executing a WebService which would receive a role name and get all the users for that role. Then, using the UWL API, it would check how many tasks each of the users have in their UWL, and return the UserID for whoever has the least tasks. I haven't been able to get this to work. I keep getting Logged in users context or session doesn't exist Exception.
    Please, any help on this will be greatly appreciated.
    Currently working with SAP NWDS 7.1 SP05 PAT0005

    Hi,
    Thank you for your response, however, that's not what I need.
    For you and anyone esle who might find this extra info useful...
    I know how to get a user's role(s), and how to get the users in a role.
    I also know how to assign a task to a specific user dynamically.
    Using the UWL API, I know how to get the tasks (or items) in a user's UWL from a WD application, I need to do that from a WebService and using pretty much the same code, with the necessary adjustments, I can't get it to work.
    Furthermore, I'm able to get the UWL tasks for ONE user, that user being the one I log into the application with. For example, if I write code to get the tasks for user testUser1, I need to log in with testUser1 to get it to work, if I log in with any different user or make it a non-authenticated application, it won't work.
    Again, help on this is much needed and will be appreciated.

  • Creating uwl tasks directly from vc...

    Hi all,
    cud u plz tel me how to create a uwl task for a particular user directly from visual composer.
    like in my scenario i have an iview which contains a form with text fields and a submit button. when the fields are selected and  submitted, these data should get displayed  in tasks of a particular users( whichever is assigned)  uwl in the portal.
    how should this be implimented.
    plsssssss  help its urgent

    Hi Ankur,
    I need your help and i've gone through  your document "How to integrate two wd applications using gp.Now my requirement is similar to your's only. And i've extracted Gp api files to my local NWDS development but
    still i'm unable to find gp.api's under used dc's.. Is there any more configurations should i need to follow?? Could you plz help me regarding this so that i could proceed further implementation.,
    Regards,
    Sitara.k
    Edited by: sitara kola on Mar 7, 2008 12:24 PM

  • Transporting UWL Tasks between portals

    Hello Gurus,
    do you have any experiences with transporting AdHoc UWL Tasks between 2 portals?
    Do you have any idea?
    Copy of DB tables?
    Use of UWL API?
    Thanx
    Regards
    Ondrej

    Hi,
    I can help you with this ..these are the steps you need to follow:--
    Process of Transport as EPA(Enterprise Portal Archieve)
    EXPORT:--
    Login to the the portal.
    Navigate to System Administration.
    Navigate to Transport-->Export.
    Create a Folder inside the Portal Content say "TransDemo".
    Right on the Folder and Select new Tranport Package and fill in the following properties.
    Transport package name (required).
    Transport package ID (required).
    Transport package ID prefix (optional).
    Master language (required).
    Description (optional).
    Select Objects for Export
    Open the object (Transport Package) for editing.
    Add all required iView, Page, Role, Workset in the object using right click.(Can directly add a folder also).
    Click on to Export button.
    After clicking Export Button file name is automatically generated (Unique name).
    Export Selected Objects to .epa file.
    Download Export File- It displayed how many files it exported.
    Click on to "Download Export File" link for download.
    Save .epa file in your hard drive.
    IMPORT--
    Login to the the portal.
    Navigate to System Administration.
    Navigate to Transport-->Import.
    Select .epa file on Destination Server.
    Import Editor Select "Client" as source for packages file
    Select .epa file (Which is the back up file) Click on "Upload" button
    Start Import and Check Status after uploading click on to "Import" button.
    Display all imported objectAll iviews and roles are restored .
    Just follow the above steps and ask if you have any doubts as i have used this method to transport many roles from one portal server to other.
    Also one more thing can be done i.e:-->
    If you want to create the same table, then just deploy the same dictionary project in the QA portal.
    If you want to transport the datas of the table from current portal to QA, then use SQL to do Export/Import of datas at the database level.
    So do some googling on export import db table for your DB and you will find lots of hints.
    Please reward with points if you findit helpful.
    Regards
    Pooja

  • Access KM using API as predefined user

    Hello, dear experts!
    Currently I am going to use KM as file storage for my application. I want to prevent direct access to KM content for all users and allow them to upload and download files only using my application.
    The problem is:
    I use not context of current user but some user found in UME.
    IUser user = UMFactory.getUserFactory().getUserByLogonID("Administrator");
    com.sapportals.portal.security.usermanagement.IUser ep5User = portalUserFactory.getEP5User(user);
    context = new ResourceContext(ep5User);
    When I try to operate KM (for instance create new folder) I get error: "User <Administrator> is not authenticated"
    But user "Administrator" has all rights to access KM.
    Is it possible to access KM using API as different user? Or is there another way to solve the problem?
    Best regards,
    Anton.

    Hi, Praveen!
    Thank you for your answer. Your code works fine!
    But when I created my own service user "service_user" under Content Management  -> Utilities -> System Principals I cannot get resource context even after restarting servlet engine.
    I get an exception java.security.PrivilegedActionException: com.sapportals.wcm.repository.ResourceException: User management exception: Could not get service user "service_user".
    This user has the same permissions as "cmadmin_service".
    Also user with the same name was created in UME.
    May be I should execute some additional administrating task?
    Best regards,
    Anton.

  • Work items are not visible  UWL task are visible in tracking in portal

    HI
    Friends
    i  am new from sap Ess/Mss implementation project...
    i am facing an Problem " Work items are not visible under UWL in portal overview page"
    but i am configured  all the ess/mss related things....and also Created for one user for Requester(send Leave Request)...and one more user for App-rover(Apporve an Leave)..
    Requestor send an Leave through portal send it successfully......but i am facing  a problem in uwl under work items are not showing in overview page...but in tracking work items are (Leave request)showing.....work items are not showing in uwl TASK(VERY PROBLEM)...
    i am configured and also registered UWL IN PORTAL..it is good..
    in sap ecc i can assigned UWL_SERVICE user to roles
    1.SAP_BC_BMT_WFM_UWL_ADMIN    
    2.SAP_BC_BMT_WFM_UWL_END_USER
    3.SAP_BC_ADMIN_USER
    4.SAP_BC_UWL_SERVICE
    PLEASE HELP ME.
    Tanks
    Shaik Rafi

    Hi All,
    In such cases, please try to check as below :
    1) Create Leave request work item from Employee and check the same under the UWL Tracking tab of employee.
    2) Log-in to swi5 transaction of the respective back end system and give "US" -> manager's UserID -> Choose Tasks to be completed from the drop down -> Remove any date if mentioned -> Execute.
    3) Here if you can see the Leave request created, but not on the portal, it reflects some portal issue like sync.
    4) If no leave request work item is seen here, then there is a problem in the employee manager mapping or the workflow setup.
    5) In such cases, you can try to check the Swi1 and check the log of that workflow to understand the current status of the Leave request.
    Revert if further help is needed with more info.
    Reward points if found useful.
    Regards,
    Shri vidya S

  • UWL task takes up to 2 minutes to appear

    Hi there,
    We have a situation where the UWL task takes between 1 minute and 2 minuts to appear in the user's inbox. in our analysis we have found that the task is created immediatly in the business process but it set with an inactive status. After a period of time the task status changes to Ready and the  task appears in the users UWL.
    We are using NW 7.2 SP3. The task is using WD for Java UI and the "Activate this task by default when creating it" is set in the time constraints. No other time constraints have been set.
    Regards,
    Christiaan

    Hi Paul,
    we have the same problem since we move from CE 7.2 SP3 to SP4.
    We just created an OSS-Message last week.
    regards,
    Sid

  • Human Task Java API

    Hi
    I have a requirement to create human tasks without using soa. I am trying to use the Human task Java API. Using this API I can do all the operations like updating the outcome, adding/updating comments and updating assignee list but not able to create initial task. I am using initiateTask operation which requires task definition id. I dont know how to set this. Can anybody guide me
    1. Can I create human tasks without using composite pure java api?
    2. If I am able to create initial task what will be the task definition id? I tried to enter a new row in soa infra meta data table which did not work.
    I really appreciate the help.
    Thanks

    Hi Sri
    I have few Processes deployed to my SOA Domain and that too under different Partitions. For ease of maintenance, in EM Console under soa_infra node instead of default partition we can have our own Partitions also to deploy specific workflow projects under those partitions. If you don't have this thats ok.
    I looked at Payload data for all the Tasks submitted by the first Initiator Task in EM Console, when we check the Flow Trace etc. Here is what I found for <taskDefinitionId> value for each of my different Processes. They do have some Pattern. So you had to use some sort of properties file to get these values so that if they are deployed to different partitions and with different versions, you do not have to modify your java code and recompile it. Just modify .properties file.
    Anyhow, looks like the format for <taskDefinitionId> is something like this:
    NameOfPartition + "/" + NameOfProcess + "!" + VersionNumber + "/" + NameOfInitiatorHumanTask
    Here are some examples from my domain for some of the Process.
    <taskDefinitionId>default/SalesQuoteProcess!1.0/EnterQuote</taskDefinitionId>
    <taskDefinitionId>Ravi1_Partition/CreditReviewRequestProcess!1.0/HumanTaskCreditRequestor1</taskDefinitionId>
    <taskDefinitionId>Jegga1_Partition/HolidayProcess!1.0/StartNewHolidayTask</taskDefinitionId>
    You already tried hardcoding it I guess and it worked. Now try generating them dynamically using simple String appenders and sort of properties file to make it more dynamic. How often do we really change partition name or human task name itself or name of process itself. They are pretty much fixed. Now comes only the Version number. This can change with your new deployment if you want to have different version. So just read all these from .properties file.
    Thanks
    Ravi Jegga

  • Office 365 Reseller - Provision of new Office 365 business using API's?

    Hi,
    I couldn't work out which category to put this into. We have built our own provisioning and billing portal which is currently used to provision phone services. We currently resell hosted exchange and are looking to resell Office 365. Are there any API's
    available for Office 365 for the creation, management, deletion of businesses and users within that business. We want all of the functionality of the office 365 partner and admin portal but we want all tasks to be completed within our own provisioning portal
    using API calls to the office 365 admin tools?
    For example, you can purchase office 365 from the godaddy website, we want to be able to do that.
    Thanks.

    Hi,
    Could anyone advise on this matter ?
    Thanks,
    Kind regards.

  • Error when launching GP UWL tasks from consumer portal

    In our federated portal network we have configured the universal worklist in the consumer portal to display guided procedure tasks from a producer portal - both portals are NW 7.0 SP14.
    All GP tasks from the producer portal are displayed in the consumer portal without issue.
    When we attempt to launch one of the GP tasks in the consumer portal we recieve the following error - Could not retrieve process instance: contact your system administrator.
    If we launch the GP tasks in the producer portal there are no issues.
    Has anyone experienced a similar situation?

    I worked through this issue with SAP support.
    For the ItemType with name="uwl.task.gp.XXX", where XXX is the system alias of the remote GP system.
    Changed attribute from defaultAction="launchGP" to defaultAction="editItem" because the name of the Action described for this itemType is "editItem".
    The action handler that is used is "UrlLauncher" (handler="UrlLauncher") but this handler works only with attribute launchInNewWindow="yes". So in all actions with attribute handler="UrlLauncher" change the attribute launchInNewWindow from "no" to launchInNewWindow="yes".
    Uploaded new uwl.gp.config.xml with high priority.

Maybe you are looking for