New method in workflow
Hi ,
I was going through some of the previous posts and none did seem to answer my question completely.
SO was wondering if someone can help me, I have created a new method, this methods collect values from a field of container and set another variable of container.
DO i need to add import or export parameters for this method sumwer ?
The task generation in workflow builder is done by someone else and the binding will also be taken care by them, I was wondering where I have to define what elements I am expecting and what values I will be returning ?
thanks,
RS
Hi Reena,
You should maintain what are import and export parameters of that method..
So while defining the method maintain them... So that everything goes fine as desired..
If you are using a Function module to declare a method of Business object then there is no necessary of
maintaining Import and Export as they will be maintained in Function module..
Hope this would solve your issue.
Please revert back if any queries
Good luck
Narin
Similar Messages
-
How to call java method from workflow script?
Hi
I have a requirement of updating field value 'Document Status' based on review/approve of content from Workflow and hence need to update the version number. For that I need to call my java method from workflow during submit of review/approve condition. Please let me know how to call java method from workflow?
Is there any alternative better way to achive this requirement from workflow? Please suggest.
Thanks,
SarangOK. So, I think we can all conclude that you don't need to call any Java method, can't we? And, that wfUpdateMetadata is the command that will update your metadata.
Now, the question is what are its arguments. It has two - the first is the name of a custom metadata field to be updated (let's suppose that one field is called xMinorVersion, and the other xMajorVersion), the other is the new value, e.g. <$wfUpdateMetaData("xMinorVersion", "New value.")$>As for new value - do you insist on using strings? Since you want to increase the value, it would be more convenient to work with numbers. For instance, with integers you could go with <$wfUpdateMetaData("xMinorVersion", xMinorVersion + 1)$>With strings you will need to convert it to numbers and back to strings. Besides, what happens if you have more than 100 minor versions? (you mentioned you want to add 0.01, but that would finally increase the major version, wouldn't it?) So, I think these two numbers are independent (perhaps, with exception that increase on the major version set the minor version to .00).
If you want to present it, you can use profiles that will construct for you the representation 2.304 out of MajorVersion = 2, MinorVersion = 304
Solved? -
Enhanced SAP class with new methods - Not showing these from standard task
Dear Gurus,
I have enhanced SAP standard class with new methods. After I have activated my new methods and would like to create a workflow task using these new methods. when I create a task and input object category as "ABAP Class" and object type is SAP enhanced class. When I try to drop down for methods SAP is not showing my new methods. I do not know why. Am I missing any? Any help would be appreciated.
Note: Remember I am trying to use SAP ABAP class custom methods.
Thanks,
GSMHi,
Your thread has had no response since it's creation over
2 weeks ago, therefore, I recommend that you either:
- Rephrase the question.
- Provide additional Information to prompt a response.
- Close the thread if the answer is already known.
Thank you for your compliance in this regard.
Kind regards,
Siobhan -
Error while adding a new method to the Session Bean
Hello everyone. I'm using jdev 11g, ejb, jpa & jsf. Everything works fine. But when I try to add a custom method to the Session Bean, I'm having an error.
Here is my steps:
1) I added a new method to SessionBean.java. Something like this:
public void Hello() {
System.out.println("Hello!");
2) Then using Structure palette I exposed this method through Local interface and created data control
3) Finally, I made a command button binded to this method (just droped it from DataControls.dcx to my page)
When I start the page and click the button, I'm having the following error:
Error 500--Internal Server Error
javax.faces.el.EvaluationException: Method not found: Hello.execute(javax.faces.event.ActionEvent)
at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:58)
at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1227)
at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183)
at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:70)
... (I've truncated the log because there is nothing important in the missing part)Yes, I have binding in the page def. Everything is correct there:
<methodAction id="Hello" RequiresUpdateModel="true" Action="invokeMethod"
MethodName="Hello" IsViewObjectMethod="false"
DataControl="PriceServiceLocal"
InstanceName="PriceServiceLocal.dataProvider"/>
I've droped the method from the Data Controls panel -
Creating a new method in an enhanced component class implemetation
Hello Experts,
I am trying to create a new method in the enhanced component(BT115IT_SLSO) implementation class ( ZL_BT115IT__ITEMS_IMPL)to run our custom functionality. But somehow when I put a breakpoint and debug while I add a product to the sales order the method doesnt get trigerred.
Is there some thing which I have to do get this trigerred ? I just added a ned method and placed some custom code in it. Do I have to invoke it anywhere ?
Pls help me out. I am new to Web UI.
ThanksHi Mavrick,
As you are performing some action like item addition , there you need a method called as " event handler " to handle the event and perform the required actions.
Place a break point in DO_HANDLE_EVENT method , and you will know the exact event handler method which is getting triggered . or if you are defining a new event ( by adding any new button) you should create a event handler method using wizard giving the same name which is defined on_click field of the button as it is case sensitive.
Regards,
Nithish -
Why can I no longer, after having downloaded Lion, write accents and other diacriticals when in the Google, Yahoo, FaceBook, or even here in this post? The new method for getting at the "option" symbols works fine in other places like spotlight, but now even the older "option+letter" doesn't work in most places.
Chrome doesn't support the new accent/diacritics/macron chooser. I'm not sure about other browsers such as Firefox. You can use the old Option+letter combination that Doug suggested. Hopefully updates will solve these little incompatibilities shortly.
Neill -
How to use secondary method in workflow?
Hi friends,
can anyone plz let me know how to use secondary methods in workflow? it would be helpful if u explain with an example..
thanks and regards,
Arun.SHi Arun Kumar,
The Sec Method can be used in the user decision step. The secondary methods are executed along with the user decision step. You have 3 options. Either execute a secondary method before executing the user decision step or after execution of user decision step or while executing the user decision.
For this define the methods either in Methods before execution of workitem execution to execute it before user decision step or Methods after execution of workitem so as to execute it after the execution of user decision.
In order to execute a method along with user decision step execution use secondary methods (amodal call.)
Let me know if you have any queries.
Regards,
Raj -
Am New To Oracle WorkFlow.
Hi All,
m new to oracle workflow,i have no idea about workflow software that should install before practise on my personnel computer.i already install oracle DB 10g,forms 10g,plz told me wut i should install for workflow so i can do practice of workflow.
plz help mePl see this thread
WorkFlow Training
HTH
Srini -
Hi,
I am creating a new method METHOD2 in an existing class.
I am using an internal table which is populated in other method METHOD1.
But when I tried to call the METHOD2 in main program,it is saying that METHOD2 is not defined.while I have activated the method.
it is to be noted that I have not given any exporting,importing,changing parameter to this method.Do I need to give it compulsarily>if yes,then can I give the internal table as changing parameter,the one which is being populated in METHOD1.?
Thanks in advance!!Hi ,
Here is a sample code that accesses an internal table in a method to display the list of employees
Super class LCL_CompanyEmployees
CLASS lcl_company_employees DEFINITION.
PUBLIC SECTION.
TYPES:
BEGIN OF t_employee,
no TYPE i,
name TYPE string,
wage TYPE i,
END OF t_employee.
METHODS:
constructor,
add_employee
IMPORTING im_no TYPE i
im_name TYPE string
im_wage TYPE i,
display_employee_list,
display_no_of_employees.
PRIVATE SECTION.
CLASS-DATA: i_employee_list TYPE TABLE OF t_employee,
no_of_employees TYPE i.
ENDCLASS.
*-- CLASS LCL_CompanyEmployees IMPLEMENTATION
CLASS lcl_company_employees IMPLEMENTATION.
METHOD constructor.
no_of_employees = no_of_employees + 1.
ENDMETHOD.
METHOD add_employee.
Adds a new employee to the list of employees
DATA: l_employee TYPE t_employee.
l_employee-no = im_no.
l_employee-name = im_name.
l_employee-wage = im_wage.
APPEND l_employee TO i_employee_list.
ENDMETHOD.
METHOD display_employee_list.
Displays all employees and there wage
DATA: l_employee TYPE t_employee.
WRITE: / 'List of Employees'.
LOOP AT i_employee_list INTO l_employee.
WRITE: / l_employee-no, l_employee-name, l_employee-wage.
ENDLOOP.
ENDMETHOD.
METHOD display_no_of_employees.
Displays total number of employees
SKIP 3.
WRITE: / 'Total number of employees:', no_of_employees.
ENDMETHOD.
ENDCLASS.
Sub class LCL_BlueCollar_Employee
CLASS lcl_bluecollar_employee DEFINITION
INHERITING FROM lcl_company_employees.
PUBLIC SECTION.
METHODS:
constructor
IMPORTING im_no TYPE i
im_name TYPE string
im_hours TYPE i
im_hourly_payment TYPE i,
add_employee REDEFINITION.
PRIVATE SECTION.
DATA:no TYPE i,
name TYPE string,
hours TYPE i,
hourly_payment TYPE i.
ENDCLASS.
*---- CLASS LCL_BlueCollar_Employee IMPLEMENTATION
CLASS lcl_bluecollar_employee IMPLEMENTATION.
METHOD constructor.
The superclass constructor method must be called from the subclass
constructor method
CALL METHOD super->constructor.
no = im_no.
name = im_name.
hours = im_hours.
hourly_payment = im_hourly_payment.
ENDMETHOD.
METHOD add_employee.
Calculate wage an call the superclass method add_employee to add
the employee to the employee list
DATA: l_wage TYPE i.
l_wage = hours * hourly_payment.
CALL METHOD super->add_employee
EXPORTING im_no = no
im_name = name
im_wage = l_wage.
ENDMETHOD.
ENDCLASS.
Sub class LCL_WhiteCollar_Employee
CLASS lcl_whitecollar_employee DEFINITION
INHERITING FROM lcl_company_employees.
PUBLIC SECTION.
METHODS:
constructor
IMPORTING im_no TYPE i
im_name TYPE string
im_monthly_salary TYPE i
im_monthly_deducations TYPE i,
add_employee REDEFINITION.
PRIVATE SECTION.
DATA:
no TYPE i,
name TYPE string,
monthly_salary TYPE i,
monthly_deducations TYPE i.
ENDCLASS.
*---- CLASS LCL_WhiteCollar_Employee IMPLEMENTATION
CLASS lcl_whitecollar_employee IMPLEMENTATION.
METHOD constructor.
The superclass constructor method must be called from the subclass
constructor method
CALL METHOD super->constructor.
no = im_no.
name = im_name.
monthly_salary = im_monthly_salary.
monthly_deducations = im_monthly_deducations.
ENDMETHOD.
METHOD add_employee.
Calculate wage an call the superclass method add_employee to add
the employee to the employee list
DATA: l_wage TYPE i.
l_wage = monthly_salary - monthly_deducations.
CALL METHOD super->add_employee
EXPORTING im_no = no
im_name = name
im_wage = l_wage.
ENDMETHOD.
ENDCLASS.
R E P O R T
DATA:
Object references
o_bluecollar_employee1 TYPE REF TO lcl_bluecollar_employee,
o_whitecollar_employee1 TYPE REF TO lcl_whitecollar_employee.
START-OF-SELECTION.
Create bluecollar employee obeject
CREATE OBJECT o_bluecollar_employee1
EXPORTING im_no = 1
im_name = 'Gylle Karen'
im_hours = 38
im_hourly_payment = 75.
Add bluecollar employee to employee list
CALL METHOD o_bluecollar_employee1->add_employee
EXPORTING im_no = 1
im_name = 'Gylle Karen'
im_wage = 0.
Create whitecollar employee obeject
CREATE OBJECT o_whitecollar_employee1
EXPORTING im_no = 2
im_name = 'John Dickens'
im_monthly_salary = 10000
im_monthly_deducations = 2500.
Add bluecollar employee to employee list
CALL METHOD o_whitecollar_employee1->add_employee
EXPORTING im_no = 1
im_name = 'Karen Johnson'
im_wage = 0.
Display employee list and number of employees. Note that the result
will be the same when called from o_whitecollar_employee1 or
o_bluecolarcollar_employee1, because the methods are defined
as static (CLASS-METHODS)
CALL METHOD o_whitecollar_employee1->display_employee_list.
CALL METHOD o_whitecollar_employee1->display_no_of_employees. -
Background method in workflow hangs
Hi All,
I have a background method in workflow which calles a report. Actually the report calles smartforms and I am storing OTF data on application server. I am not displaying the print preview. I am just stroring the OTF data on application server.
When I explicitely execute the report from SE38 in background (using F9) file is getting generated on application server. But when I call this report from method of a workflow, method execution remains in process. And file is not generated.
I have used the RETURN statement while calling it from workflow method. What could be the reason for this??
Thandks in advance,
Neha Yeralkar.Hi,
Calling transaction and Submit programs are usually reserved for dialog methods, where essentially all the workflow needs to do is take the agent to the transaction or program where the user can complete the business activity. For background methods usually call function modules or BAPIs are used where the business activity is performed automatically without any user involvement. Moreover it will help you in handling exceptions returned from Function modules. Also define the method exception explicitly based on the exceptions of FM, inorder to track it down if it occurs.
Regards, Saud -
ABAP OOP method in Workflow task 6.20
Hello all!
In the following blog /people/jocelyn.dart/blog/2006/07/25/using-abap-oo-methods-in-workflow-tasks it is mentionned that to enable OOP methods for workflow tasks on 6.20 one needs to run report SWF_CATID.
I'm currently on a customer system 6.20 ABAP SP50 and this report simply does not exist. Is this report appearing in a later support pack or is this not available until 6.40 as I belived....
Any advise on how to enable this on an above system is highly appriciated!
Regards
Martin JonssonHi,
Check this Report - RSWF_CATID.
Regards,
Surjith -
To change the string in Class Builder "New Method"
HI friends,
Im using the std program of "RFDOPR10"...(changed into my customised program as ZRFDOPR10).....
Here i want to change the strings of Id_type eq 4 availble under the class builder "New Method".
"id_ruler_string = '2.13.24.29|43|58|73|88|103|118|'" (for 24...i want to give 38.....then 45...)
Pls help me how to change the std method function for my z program...
FYR:
RFDOPR10 is the std program for tcode :"s_alr_87012178", Customer analysis.If u want to c the example report, in this tcode...give OI:1, Summ level:6, OI list:1 and Company CD:2 under Output control tab in selection screen with Company code.Now, u able to see the reports in the screen.There, after Customer number....I've to give some more spaces(length) for Sort field.
Thanks & regards
Sankar.No, but I suggest using a different editor which does allow a different text option and just pasting it in.
-
Tochange the string in Std Class Builder "New Method"
HI freinds,
Im using the std program of "RFDOPR10"...(changed into my customised program as ZRFDOPR10).....
Here i want to change the strings of Id_type eq 4 availble under the class builder "New Method".
"id_ruler_string = '2.13.24.29|43|58|73|88|103|118|'" (for 24...i want to give 38.....then 45...)
Pls help me how to change the std method function for my z program...
FYR:
RFDOPR10 is the std program for tcode :"s_alr_87012178", Customer analysis.If u want to c the example report, in this tcode...give OI:1, Summ level:6, OI list:1 and Company CD:2 under Output control tab in selection screen with Company code.Now, u able to see the reports in the screen.There, after Customer number....I've to give some more spaces(length) for Sort field.
Thanks & regards
Sankar.Associated with the text box there will be some kind of event handler. Maybe it's an action event on the text box (when the user clicks return) or maybe you have a separate button that the user clicks.
Either way, in the event handler, get the text from the text box, and then call the sendData method, passing the text as an argument. -
Relationship between events, Methods,Container, & workflow
Hi all,
could you pls navigate through the hierarchical steps linking the above and explain the role/usage of these with a simple example.
thanks,
SubbaThanks Rajan,
i need to understand the technical components involved in the flow..
so if i have a <b>scenario</b> like:
1) user creates and saves a Purchase order
2) his superior should get a mail to release/hold the PO
3) if yes then PO should be released.
so how would the events, containers, BOR methods and workflow container look like.
Thanks,
Subba. -
Using new methods (getContentHandler and parse(InputSource)
I am trying to read an xml file then count how many books from the xml file. I learned some methods are deprecated, so I tried to use the new methods. But, I somehow can't get the program work. I am stack on the getContentHandler and parse(InputSource) line ... :( Help!!!
I changed: setDocumentHandler to getContentHandler
HandlerBase to DefaultHandler
parse to parse(InputSource)
Kindly take a look at my program see if I missed out something? Thank you very much for your time.
My code:
=============
* Write a description of class hello here.
* @author (your name)
* @version (a version number or a date)
import java.io.*;
import java.net.*;
import java.lang.*;
import org.xml.sax.*;
import org.xml.sax.helpers.DefaultHandler;
import org.xml.sax.ContentHandler;
import org.xml.sax.InputSource;
import javax.xml.parsers.SAXParserFactory;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.parsers.SAXParser;
public class BookCounter extends DefaultHandler
private int count = 0;
public static void main (String args[]) throws Exception
(new BookCounter()).countBooks();
public void countBooks() throws Exception
SAXParserFactory f = SAXParserFactory.newInstance();
SAXParser f2 = f.newSAXParser();
// Here said "cannot resolve symbol - method getContentHandler (BookCounter)
f2.getContentHandler(this);
// Here said "cannot resolve symbol - method parse(java.lang.String)
f2.parse("file:///C:/books.xml");
public void startElement(String name, Attributes atts) throws SAXException
if (name.equals("book"))
count++;
public void endDocument() throws SAXException
System.out.println("There are" + count + "books");// Here said "cannot resolve symbol - method getContentHandler (BookCounter)
f2.getContentHandler(this);
should be
f2.setContentHandler(this);
Maybe you are looking for
-
I have a PowerBook G4 laptop running OS 10.41. The iTunes store recently required a download to the new iTunes 10, which I downloaded but couldn't install because it require OS 10.5. I only use my computer to surf internet and store music. How can I
-
How do I search a document for hyperlinks in Acrobat Pro XI?
Running Windows 7 Enterprise -- It seems neither the advanced nor simple search option includes a check box for hyperlinks in a search. What am I missing?
-
Linking to PDF files in HTMLResources.zip file with Windows 8.1 Viewer
I have followed the instructions from 'DPS Tips' regarding creating a HTML Resources folder and compressing the PDF files etc... It works on IOS Viewer but it doesn't work on Windows 8.1 Viewer. Is linking to PDF files in HTMLResources.zip file sup
-
Server 3.1.1 MDM Issue
Hello Everybody, Apart from the fact that the CPU load is high since Server 3.1 I found a new issue I expierence since 3.1.1 Download and apply trust profile on client - check - works! Download and apply enrolment profile on client - NOT WORKING. Ope
-
Remote Access: Configure Video Playback to not go black
While using Remote Access Media server the display will go black in the middle of the video the sound will keep playing and if you touch your keypad or mouse fast enough the screen will start up again but if you aren't paying attention you may have t