ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » Workflow Engines - IBM MQ Workflow & Business Process Choreographer » How do I set a fixed value?

Post new topic  Reply to topic Goto page 1, 2  Next
 How do I set a fixed value? « View previous topic :: View next topic » 
Author Message
fponcet
PostPosted: Tue Mar 14, 2006 1:24 am    Post subject: How do I set a fixed value? Reply with quote

Acolyte

Joined: 20 Oct 2005
Posts: 55

Hi,

I am using Workbench and Workflow 3.5. I am not able to set a fixed value in a Phi node. I am mapping some values from the input to one process but I need a fixed constant value in one field too.

Can anyone please tell me how can I do it?

Thanks in advance,

FP
Back to top
View user's profile Send private message
eai43india
PostPosted: Tue Mar 14, 2006 2:04 am    Post subject: Reply with quote

Newbie

Joined: 14 Mar 2006
Posts: 9

USe the "Default value" operation in mapping

Just enter the value and select the string check box.
Back to top
View user's profile Send private message
fponcet
PostPosted: Tue Mar 14, 2006 2:10 am    Post subject: Reply with quote

Acolyte

Joined: 20 Oct 2005
Posts: 55

eai43india wrote:
USe the "Default value" operation in mapping

Just enter the value and select the string check box.


I checked the default operation radio button but I am no table to write anything. It looks like the typing is disabled and the only thing you can do is select one source field, or perhaps the "string check box" is something I did not understood.

Thanks for your answer and please let me know if you have any other idea.
Back to top
View user's profile Send private message
kotha
PostPosted: Tue Mar 14, 2006 7:27 am    Post subject: Reply with quote

Partisan

Joined: 12 Mar 2005
Posts: 333

While modelling, I dont think you can set the value to a specific one. But your program will do it at run time. In other tools like ICS, you have that option.
Back to top
View user's profile Send private message
fponcet
PostPosted: Tue Mar 14, 2006 7:29 am    Post subject: Reply with quote

Acolyte

Joined: 20 Oct 2005
Posts: 55

pachyderm wrote:
While modelling, I dont think you can set the value to a specific one. But your program will do it at run time. In other tools like ICS, you have that option.


So... do I have to put an external program only to take a constant value?



Thanks for your answer.
Back to top
View user's profile Send private message
jmac
PostPosted: Tue Mar 14, 2006 8:10 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Jun 2001
Posts: 3081
Location: EmeriCon, LLC

You can most definitely set a Default value into the container using Modeler. I do not have a current Modeler install so I can not give you the exact specifics on how to do it, but I have done it MANY times in the past. The probable issue is that you are mapping over your default value... just a guess but I bet this is what's happening if you think you have set the default value properly.
_________________
John McDonald
RETIRED
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Mattrix
PostPosted: Tue Mar 14, 2006 12:32 pm    Post subject: Reply with quote

Novice

Joined: 01 Mar 2006
Posts: 11

If you are talking about hard coding a data field which has to be populated to an activity in Workbench then here is the solution.

In workbench, select the activity that has to use the hardcoded value. click on the data tab and you will see three fields. Source, target and initial values. select the specific data field that you wanna hard code in the target column and type in the appropriate hard code value that u wanna use in the initial value column right beside it. This is how hardcoding is done in workbench

This should work. I have been doing this for a while

Matt
Back to top
View user's profile Send private message
fidelio
PostPosted: Tue Mar 14, 2006 12:34 pm    Post subject: Reply with quote

Apprentice

Joined: 14 Sep 2005
Posts: 45
Location: AttainBPM

Default values for data container members are set on the "Data" tab in the Task Object dialog (where you would set the data loop mapping for the activity, output to input). You should see a similar page to the phi data flow tab except that the table at the bottom of the tab has three columns (Source, Target, Initial Value) instead of two (Source and Target). To set an initial value select the Target (input data structure) and then you are allowed to enter a value.
Back to top
View user's profile Send private message
kotha
PostPosted: Tue Mar 14, 2006 12:43 pm    Post subject: Reply with quote

Partisan

Joined: 12 Mar 2005
Posts: 333

I misunderstood the post. yah... you can set the value while mapping data structures in build time.
Back to top
View user's profile Send private message
fponcet
PostPosted: Wed Mar 15, 2006 12:24 am    Post subject: Reply with quote

Acolyte

Joined: 20 Oct 2005
Posts: 55

So initial value is the fixed value, isn't it?
Back to top
View user's profile Send private message
jmac
PostPosted: Wed Mar 15, 2006 6:47 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Jun 2001
Posts: 3081
Location: EmeriCon, LLC

If by Fixed you mean "NEVER CHANGES" then no, I do not believe there is any way to set such a value. The only way to have a default value set for a memeber and to have that member never change is to ensure that you never map any other data to that member.
_________________
John McDonald
RETIRED
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Mattrix
PostPosted: Wed Mar 15, 2006 9:23 pm    Post subject: Reply with quote

Novice

Joined: 01 Mar 2006
Posts: 11

Mac,
after you said i tested your scenario in my local machine. I am using a workbench 4.2.4. i did set a hard coded value for a data field in the intial value column for an activity. Then i instantiated that activity by passing some other data for the same data field but what i found was nothing overwritten. from this what i understood is the activity gets only the hard coded value and whatever value we pass to the same data field doesnt overwrite the hard coded value.

Matt
Back to top
View user's profile Send private message
jmac
PostPosted: Thu Mar 16, 2006 6:35 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Jun 2001
Posts: 3081
Location: EmeriCon, LLC

Mattrix wrote:
from this what i understood is the activity gets only the hard coded value and whatever value we pass to the same data field doesnt overwrite the hard coded value.


I have to doubt what you are saying. Perhaps I am misunderstanding you, but if I have an initial value for Member B. If I map data into member B that initial value is most definitely OVERLAYED.
_________________
John McDonald
RETIRED
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Mattrix
PostPosted: Thu Mar 16, 2006 1:02 pm    Post subject: Reply with quote

Novice

Joined: 01 Mar 2006
Posts: 11

i think it is the reverse mac. i think we can't overwrite a hardcoded value with another value. we can overwrite a regular value by a hardcoded value. another case is, if we dont use any hardcoded values and if two different values come from different paths to the same data field of an activity then one might over write the other. i tested it again and i found the above to be true. can u check it out in your machine so that I can make sure i was right.

Thanks
Matt
Back to top
View user's profile Send private message
jmac
PostPosted: Thu Mar 16, 2006 3:06 pm    Post subject: Reply with quote

Jedi Knight

Joined: 27 Jun 2001
Posts: 3081
Location: EmeriCon, LLC

I will test.... send me your FDL. Again, maybe I just don't understand what you are saying... Because I KNOW you are incorrect based on my interpretation of what you are saying.
_________________
John McDonald
RETIRED
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Goto page 1, 2  Next Page 1 of 2

MQSeries.net Forum Index » Workflow Engines - IBM MQ Workflow & Business Process Choreographer » How do I set a fixed value?
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.