Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Workflows : Few Doubts.

Former Member
0 Likes
476

Hi,

Am new to Workflows. I got some doubts in Workflows. Here are the doubts:

1) Can we identify the Workflow Template number( not the template description) from the Workflow Log?

2) Is there any way to debug my workflows. I have a situation where I want to see my container variables values at each and every step. Is this Debugging possible?

3) I am creating a Business Object and it has got a set of methods. Well I would like to make one my own particular method to be made as Default method to my

Business Object. How is it possible?

4) I have created a Business Object ZRAJA with 2 fields :

PERNR as Key Field and ENAME as Attribute.

Now I created a method for this Business Object named

DispPernr. This method gets the PERNR from the

Container Variable which is sent from WF using a macro

SWC_GET_ELEMENT.Using this PERNR am getting ENAME from

PA0001 (by select query). And I am updating in the

OBJECT, setting OBJECT-ENAME = W_ENAME. After that I

am just coming out of the method.

Then I created a new WF Template, with a Activity step

refering to the task which in turn refers to a

Business Object ZRAJA with method DispPernr.

And with one more step which sends a mail with

ZRAJA.PERNR and ZRAJA.ENAME values. Now the problem is here only. I can get ZRAJA.PERNR value alone. I am not able to get the value of ZRAJA.ENAME in that mail. Why is that so? I kept a break-point in the Business Object and tested it. There is no problem from Business Object wise. Am able to populate OBJECT-ENAME correctly. But I am not able to retain it back to workflow. Is there any thing specific that must be done in Business Object's method to update the OBJECT REFERENCE sent from WF?

I have checked out the BINDINGS everywhere...I feel there is no problem with BINDING...

Can anyone help me out?

Regards,

Raja Sekhar.

1 ACCEPTED SOLUTION
Read only

ramki_maley
Active Contributor
0 Likes
383

Hi,

Here are the answers:

1) Yes. From the log display, click on the very first line (this will be the template description) to display the attributes for the WF instance. Use the Menu option Extras->Technical Data.

2) Use transaction SWUD. Enter your template ID. Click on Test Environment and click on 'Switch on Container....' (this is how I do it). You can start your WF from here and test.

3)In Edit Mode of BO, double click on the BO name. in the defaults tab, assign the default method.

4) If ENAME is an attribute, you must put your code in GET_PROPERTY ENAME. Same as you implement code for a method.

Cheers,

Ramki Maley.

Wish you posted 4 questions, could have got 40 points

2 REPLIES 2
Read only

ramki_maley
Active Contributor
0 Likes
384

Hi,

Here are the answers:

1) Yes. From the log display, click on the very first line (this will be the template description) to display the attributes for the WF instance. Use the Menu option Extras->Technical Data.

2) Use transaction SWUD. Enter your template ID. Click on Test Environment and click on 'Switch on Container....' (this is how I do it). You can start your WF from here and test.

3)In Edit Mode of BO, double click on the BO name. in the defaults tab, assign the default method.

4) If ENAME is an attribute, you must put your code in GET_PROPERTY ENAME. Same as you implement code for a method.

Cheers,

Ramki Maley.

Wish you posted 4 questions, could have got 40 points

Read only

Former Member
0 Likes
383

Excellent Ramki sir,

Your are really great sir.Superb knowledge.

I had wasted many hours on each and every issue.

Well I myself found some of the answers before I checked this mail. Anyhow by this reply, I completely clarified my doubts.

Thank you really very much.

Keep helping us in future also.

And also suggest some nice Workflow websites for our future reference.

Regards,

Raja Sekhar.