What are the proper steps if I want to do the following:
Have a process that:
- Enters NEW UserConfig
- Uses the just created UserConfig and creates a new entry in another BO with the attributes from the UserConfig object
Proper Steps
Assuming UserConfig is a standard BO with some Main form, and that you want a user to enter the details of the UserConfig, I'd do it like this -
Create a process which contains these rules -
ENTER NEW UserConfig USING Main
FIND AnotherBO FOR SomeConditions
AnotherBO.Attribute1 = UserConfig.Attribute1
AnotherBO.Attribute2 = UserConfig.Attribute2
etc
etc
Or, if you want the process to create a new AnotherBO, the process could go like this -
ENTER NEW UserConfig USING Main
Create AnotherBO WITH AnotherBO.Attribute1 = UserConfig.Attribute1, AnotherBO.Attribute2 = UserConfig.Attribute2, etc, etc
Or if your user will enter some of the AnotherBO attributes -
ENTER NEW UserConfig USING Main
ENTER NEW AnotherBO WITH AnotherBO.Attribute1 = UserConfig.Attribute1, AnotherBO.Attribute2 = UserConfig.Attribute2, etc, etc USING Main
It very much depends on your context (pardon the pun), I guess you could also create a rule of the UserConfig BO like this -
IF UserConfig IS NEW THEN
CREATE AnotherBO WITH AnotherBO.Attribute1 = UserConfig.Attribute1, AnotherBO.Attribute2 = UserConfig.Attribute2, etc, etc
I don't know if there is a proper way of doing it - it's more a question of which way best fits your purpose.
HTH,
Peter
Create a process which contains these rules -
ENTER NEW UserConfig USING Main
FIND AnotherBO FOR SomeConditions
AnotherBO.Attribute1 = UserConfig.Attribute1
AnotherBO.Attribute2 = UserConfig.Attribute2
etc
etc
Or, if you want the process to create a new AnotherBO, the process could go like this -
ENTER NEW UserConfig USING Main
Create AnotherBO WITH AnotherBO.Attribute1 = UserConfig.Attribute1, AnotherBO.Attribute2 = UserConfig.Attribute2, etc, etc
Or if your user will enter some of the AnotherBO attributes -
ENTER NEW UserConfig USING Main
ENTER NEW AnotherBO WITH AnotherBO.Attribute1 = UserConfig.Attribute1, AnotherBO.Attribute2 = UserConfig.Attribute2, etc, etc USING Main
It very much depends on your context (pardon the pun), I guess you could also create a rule of the UserConfig BO like this -
IF UserConfig IS NEW THEN
CREATE AnotherBO WITH AnotherBO.Attribute1 = UserConfig.Attribute1, AnotherBO.Attribute2 = UserConfig.Attribute2, etc, etc
I don't know if there is a proper way of doing it - it's more a question of which way best fits your purpose.
HTH,
Peter