How to change the Task title on runtime?

Hi experts again,
My customer is struggling with something very simple: how to customize the Task title. You can certainly create an argument in the task, use Data Associations to map the argument, and then use XPath expression to get the value from the task payload and set it to the task title. That works fine. But it only executes once, when the process instance 'enters' in the task.
So once the Task is created, you can see the custom title in the Workspace.
Now, can we change the Title on runtime? I thought you could get the task payload, update the title and finally update the task but this does not seem to work. Here's the code that does it.
In this example, the priority is updated successfully but not the title.
FacesContext context = FacesContext.getCurrentInstance();
String tskId = (String)context.getApplication().evaluateExpressionGet(context,
"#{pageFlowScope.bpmWorklistTaskId}", String.class);
IWorkflowServiceClient workflowSvcClient = WorkflowService.getWorkflowServiceClient();
ITaskService taskSvc = workflowSvcClient .getTaskService();
ITaskQueryService wfQueryService = workflowSvcClient.getTaskQueryService();
IWorkflowContext wfContext = WorklistUtil.getWorkflowContextForASelectedTask();
Task myTask;
try {
myTask = wfQueryService.getTaskDetailsById(wfContext, tskId);
Element payloadElem = myTask.getPayloadAsElement();
System.out.println("****************" + myTask.getTitle());
System.out.println("****************" + myTask.getPriority());
myTask.setTitle("Task Title 3");
myTask.setPriority(2);
myTask.setPayloadAsElement(payloadElem);
taskSvc.updateTask(wfContext, myTask);
} catch (Exception e) {
e.printStackTrace();
The results which printed out in console after execute above code twice.
****************Task Title 1
****************3
****************Task Title 1
****************2

You can use the appropriately named Window Title property. In your project you can define conditional disable symbols (right-click on the project node and select Properties) and then use a conditional disable structure in your code. However, these symbols apply to the entire project, not to a specific executable. Thus, a better route would be to use the executable name (also accessible via a property), if possible, or some other distinction between the executables. What makes the executables different?

Similar Messages

  • How to Change the Windows Title in EP7.0

    Hi
    Can anyone provide some pointers on how to change the windows title bar in EP 6.0
    We would like to remove the words "SAP Netweaver Portal" from the title.
    I have found OSS note  695903 however this refers to EP6.0
    Thanks in advance.
    Ian

    Hi,
    For people who have no access to the note, here are the steps involved. The same steps are listed in the note :
    1) Logon to your portal with your user who has super_admin role.
    2) Go to the System Administration tab -> System Configuration tab.
    3) Go to the Service Configuration -> Central Configuration.
    4) Change the portal.html.head.title part. Do no forget to save the changes you made.
    5) Restart the j2ee server to be able to see the changes on the portal
    Cheers,
    Sunil

  • How to change the Window Title on a per build spec basis?

    I would like to be able to make 4 "build specificiations" against the same Startup-VI and be able to have the Window Title different in each of the output executables.   I know how to change the Window Title for the VI itself, but for some reason, I don't see the ability to override this information in Source File Settings --> Customize VI Properties dialog of the build specification.    Is there perhaps a way to do this programattically with VI server?  Perhaps there is a way I can define a unique symbol on each of the build specs and then do a case statement in code to determine which title to display based on the symbol that was defined?
    Thanks,

    You can use the appropriately named Window Title property. In your project you can define conditional disable symbols (right-click on the project node and select Properties) and then use a conditional disable structure in your code. However, these symbols apply to the entire project, not to a specific executable. Thus, a better route would be to use the executable name (also accessible via a property), if possible, or some other distinction between the executables. What makes the executables different?

  • How to change the task type of bdoc in sap crm

    Dear CRM Experts,
    I am new to CRM. Want to know how to change the task type  of Bdoc from update to insert. I am gettind B doc error due to the reason that under object_task the entry is U , whereas i have to change it to I (insert).
    Pls provide deatil answer. Points will be given.
    Regards
    Rajat
    Edited by: Gurinder Pal Singh on Jul 21, 2011 10:17 AM

    Hello Rajat,
    Please provide us more information about the error you have and it's description so that we can help here arounfd here.
    thanks
    Willie

  • How to change the Browser title when report runs on the web?

    Hi folks,
    How to change the title of the browser when I run my report on the web? Iam using Internet explorer and Reports 6i. Is it possible in 6i or 10g reports?
    Could you please tell me the step by step procedure ?
    Right now the browser is displaying the URL when I run the report with format = PDF.
    Thanks.

    It works for me. I don't see why you have a problem with >this code.
    Can you look at the source code of the html >file that was created (so, not in the browser, but in a >text editor). What do the header and title look like?The Html code in the file is same as the above code I specified. Actually I copied the same code and pasted here. But when I run the html file the Title shows up.
    Don't put </html> there. Maybe that helps. I tried this, but it did not work.
    Please let me know is there any way to set it dynamically inside the triggers using SRW built_in.
    Thanks alot.

  • How to change the browser title Window or View Dynamically.

    Hi
    I have several application calling my applicationm and i need the browser that lauches the application to have different Titles on the Browser Title.
    How can I change the Title from the Window or View?
    Please advice.
    Thank you.
    Regards,
    Vinod

    The browser title gets pulled from the WD Application Description.  Currently there is no API to change the browser title from within WDA.  Next year in 7.02 we do add such an API.  Here is an example of what will be possible in 7.02:
    data l_window_title type string.
      case lv_transaction_type.
      when wd_assist->create_mode.
      l_window_title = `Create Sales Order`.
      when wd_assist->display_mode.
      l_window_title = `Display Sales Order: ` && so_id.
      when wd_assist->change_mode.
      l_window_title = `Change Sales Order: ` && so_id.
      endcase.
      wd_this->wd_get_api( )->get_component( )->get_application( )->set_window_title( l_window_title ).
    Setting the title on a View is easier.  You can just use a Tray or Group UI element as the root of your view and set the title property of the UI element dynamically by context binding to the property.

  • How to change the application title in apex while importing it ..

    Hi ,
    I have an issue here. As per the requirements I need to change the application title in Apex while
    importing it from One instance to another instance.
    Ex: My application title is WATERFALL PORTAL in iWATERFALL instance ,it must be changed to PUAT PORTAL if im Importing it to PUAT instance.
    This change has to be done Dynamically. Without Entering it Manually.
    Kindly help me out and Will be Great for your Assistance.
    Thanks,
    Vishal

    1001804 wrote:
    Hi ,Welcome to the forum: please read the FAQ and forum sticky threads (if you haven't done so already), and update your forum profile with a real handle instead of "1001804".
    When you have a problem you'll get a faster, more effective response by including as much relevant information as possible upfront. This should include:
    <li>Full APEX version
    <li>Full DB/version/edition/host OS
    <li>Web server architecture (EPG, OHS or APEX listener/host OS)
    <li>Browser(s) and version(s) used
    <li>Theme
    <li>Template(s)
    <li>Region/item type(s) (making particular distinction as to whether a "report" is a standard report, an interactive report, or in fact an "updateable report" (i.e. a tabular form)
    With APEX we're also fortunate to have a great resource in apex.oracle.com where we can reproduce and share problems. Reproducing things there is the best way to troubleshoot most issues, especially those relating to layout and visual formatting. If you expect a detailed answer then it's appropriate for you to take on a significant part of the effort by getting as far as possible with an example of the problem on apex.oracle.com before asking for assistance with specific issues, which we can then see at first hand.
    I have an issue here. As per the requirements I need to change the application title in Apex while
    importing it from One instance to another instance.Please clarify what you mean by "application title". The Application Name in the application definition? The displayed Logo in the user interface properties?
    Ex: My application title is WATERFALL PORTAL in iWATERFALL instance ,it must be changed to PUAT PORTAL if im Importing it to PUAT instance.
    This change has to be done Dynamically. Without Entering it Manually.Also clarify what you mean by "instance". An "APEX instance" refers to the APEX installation in a database. The "APEX instance" does not have a specific name property, and would therefore usually be referred to using the database name. Or do you mean the APEX workspace containing the application?

  • How to change the frame title

    hello
    i m using oracle forms varsion 9.0.4.0......
    in the formsweb.cfg i hv set the parameters seperate frame=true
    also given the pagetitle=my application
    but when i run form in the browser ....the browser title is coming and then again a seperate window or frame appears whose title is Oracle developer forms runtime-web....i want to change the title of the second frame which appears after loading the applet in the browser...
    thanks

    You could use:
    SET_WINDOW_PROPERTY(FORMS_MDI_WINDOW, TITLE,'your title');

  • How to change the browser title of standard SAP WD4A application - eRecruit

    Hi,
    I have a requirement to change browser title for standard SAP WD4A application hrrcf_a_candidate_registration. I know this value is used from application description filed.
    Current set up is 'Candidate Registration'. (WD Component HRRCF_C_REGISTER_UI)
    I tried to use enhancement framework technique and application customization/configuration - but was not successfull.
    I do not like the idea of changing the standard SAP object since it might be overwritten in future upgrade. And also I do not prefer to create z* copy of this application as well.
    Any ideas how to handle this request? Is dynamic modification of this property possible?
    Thanks for your feedback.
    Regards,
    Igor

    Hello,
    Did you try to change the description of the service in transaction SICF ?
    You can find the Webdynpro services under the tree /default_host/sap/bc/webdynpro/sap/.
    Regards,

  • How to change the color title of unused tab?

    The color title of unused tab is white. So it makes me hard to see the title. I want to change this to black. Can you help me?
    *Screenshot
    http://i.minus.com/iVAn8VrCDEkrJ.png
    http://i.minus.com/iLwWFkS1GDHci.png

    You can look at the Classic Theme Restorer extension.
    *Classic Theme Restorer: https://addons.mozilla.org/firefox/addon/classicthemerestorer/
    *You can check out the Custom color settings of the CTR extension via its Options/Preferences button on the "Firefox/Tools > Add-ons > Extensions" page.
    *You can find extra toolbar buttons and more toolbar settings in Customize (3-bar Firefox menu button > Customize)
    See also:
    *https://support.mozilla.org/kb/how-to-make-new-firefox-look-like-old-firefox
    *https://support.mozilla.org/kb/common-questions-after-updating-to-new-firefox
    *https://support.mozilla.org/kb/learn-more-about-the-design-of-new-firefox

  • How to change the GUI title of a standard SAP screen

    Hi Gurus
    Could u pls help me on this
    I want to chnage the GUI title of a standard SAP screen without modifying the standard code.
    Thanks in advance
    Regards
    Swatantra

    Hi Vijay,
    Without a Modification, this will not be possible. If you're very particular about having your title, then is there any reason for avoiding modifications of SAP objects ?
    Regards,
    Anand Mandalika.

  • How to change the webdynpro title of an FPM application

    Hello All,
    Currently my FPM application displays, the technical webdynpro application name as title, how can I set it to a translatable string?
    Many Thanks,
    Dhanz

    Hi
    create cutom IDR ..
    Regrds
    jayaprakash T

  • How to change the default text title of Detached table/treetable

    Hi,
    Is anybody know How to change the default text title of Detached table/treetable.
    I have already read the post on "http://vtkrishn.com/2010/07/28/how-to-change-the-default-text-title-of-detached-tabletreetable/"
    as per this post It will change the title throughout the application.
    I wanted to change only for one particular table.
    Thanks,
    Charu
    Edited by: Charu on Sep 13, 2012 4:14 AM

    Hi,
    please don't double post and instead continue with your original threat. In the previous post you got the correct answer to use skinning. You did not like the solution as it doesn't allow per-instance titles. I agree with this and a logical consequence is to file an enhancement request instead of re-posting the question. I'll file the ER, so no need to follow up for you anymore
    Frank

  • How to change the "name of column" property of an text item in runtime?

    How to change the "name of column" property of an text item in runtime?
    I look the properties of items in help and found nothing about this!
    It's possible?

    Hi,
    an other solution is change the block property QUERY_DATA_SOURCE_TYPE from "Table" to "Sub-query" , than change at run time the property QUERY_DATA_SOURCE_NAME.
    First create block and add items
    The QUERY_DATA_SOURCE_NAME will be for ex. "Select 'A' as col1, 'B' AS col2, 'C' as col3 from dual"
    Set into items the column name property to col1 , col2 ...
    At run time change the query to "Select 'Z' as col1, 'X' as col2 , 'Y' as col3 from dual"
    in this way you can change the source of column value.
    Caution because if you change value type from varchar2 to date you must cast date into varchar2.
    May be that this way is valid only for view data not for insert-update, i don't remember.
    bye
    Message was edited by:
    Killernero

  • How to change the title of an object in the build order window?

    In Keynote '09 v5.1.1 (1034)... How to change the title of an object in the build order window from the default "dropped image" to a specific title?
    I'm running the following:
      Model Name: MacBook Pro
      Model Identifier: MacBookPro2,1
      Processor Name: Intel Core 2 Duo
      Processor Speed: 2.33 GHz
      Number Of Processors: 1
      Total Number Of Cores: 2
      L2 Cache: 4 MB
      Memory: 2 GB
      Bus Speed: 667 MHz
      Boot ROM Version: MBP21.00A5.B08
      SMC Version (system): 1.14f5

    Custom names can't be applied to objects in the build list.
    They are labeled as either; text, shape, table, chart or the filename of an image

Maybe you are looking for

  • ORA-28579 during Intermedia indexing

    The following error occured during the creation of an Intermedia index: ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine ORA-20000: interMedia Text error: ORA-28579: network error during callback from external procedure agent ORA

  • Regarding purchase order and cfolder

    Hi Gurus, if u go to me23n transaction, there is one tab additional, if u click on that tab, u will see one more tab cfolder activation. now i want to activate this functionality. now go to spro>>>material management>>>>>purchasing>>>>>define link to

  • Please share me the latest Oracle Help files (ora.hlp, sql.hlp, plsql.hlp)

    Dear my good friends, Would you kindly share the latest Oracle Help files of Oracle 10g version or show me the url address (http://...) to download those Help files. Some help files of Oracle such as: ora.hlp, sql.hlp, plsql.hlp, etc. Thank you very

  • Application availability to older instances

    I have a scenario where a request is created using an interactive activity. It has request creation,approval and other subsequent process to be executed one after the other. My project has three applications to operate on the requests. I have created

  • Kodo 2.5 Joins

    Manual says: "Added the com.solarmetric.kodo.impl.jdbc.UseSQL92Joins configuration property. Set this property to 'true' to use SQL 92-style joins in queries, including left outer joins where appropriate. You can also set this property on an individu