Author |
Message
|
fponcet |
Posted: Tue Mar 14, 2006 1:24 am Post subject: How do I set a fixed value? |
|
|
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 |
|
 |
eai43india |
Posted: Tue Mar 14, 2006 2:04 am Post subject: |
|
|
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 |
|
 |
fponcet |
Posted: Tue Mar 14, 2006 2:10 am Post subject: |
|
|
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 |
|
 |
kotha |
Posted: Tue Mar 14, 2006 7:27 am Post subject: |
|
|
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 |
|
 |
fponcet |
Posted: Tue Mar 14, 2006 7:29 am Post subject: |
|
|
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 |
|
 |
jmac |
Posted: Tue Mar 14, 2006 8:10 am Post subject: |
|
|
 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 |
|
 |
Mattrix |
Posted: Tue Mar 14, 2006 12:32 pm Post subject: |
|
|
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 |
|
 |
fidelio |
Posted: Tue Mar 14, 2006 12:34 pm Post subject: |
|
|
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 |
|
 |
kotha |
Posted: Tue Mar 14, 2006 12:43 pm Post subject: |
|
|
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 |
|
 |
fponcet |
Posted: Wed Mar 15, 2006 12:24 am Post subject: |
|
|
Acolyte
Joined: 20 Oct 2005 Posts: 55
|
So initial value is the fixed value, isn't it? |
|
Back to top |
|
 |
jmac |
Posted: Wed Mar 15, 2006 6:47 am Post subject: |
|
|
 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 |
|
 |
Mattrix |
Posted: Wed Mar 15, 2006 9:23 pm Post subject: |
|
|
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 |
|
 |
jmac |
Posted: Thu Mar 16, 2006 6:35 am Post subject: |
|
|
 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 |
|
 |
Mattrix |
Posted: Thu Mar 16, 2006 1:02 pm Post subject: |
|
|
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 |
|
 |
jmac |
Posted: Thu Mar 16, 2006 3:06 pm Post subject: |
|
|
 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 |
|
 |
|