cancel
Showing results for 
Search instead for 
Did you mean: 

Can we reuse models inside a model ?

ashutosh_rastogi
Active Contributor
0 Kudos

Hi,

We have developed a scenario where in we have 2 models

1. Model where in we find a list of customers and displayes the contact person for selected customer. The endpoint for this model gets the ID for selected customer.

2. Model creates equipment for a customer. Start point of this model takes customer ID as input.

Now, we want to create a model at the top. And we want to use the above two models inside it ... is this some how possible with VC in CE 7.1 SP3 ?

Regards,

Ashutosh

Accepted Solutions (1)

Accepted Solutions (1)

Lisi
Advisor
Advisor
0 Kudos

Hi Ashutosh,

Another thing you have to be aware of is that models can be reused only within the same DC when you're working on the local workspace.

When working with source control (shared repository or DTR) there is no limitation and you can reuse your models from any DC.

Best Regards,

Lisi

Answers (4)

Answers (4)

ashutosh_rastogi
Active Contributor
0 Kudos

Thanks for all your posts

Former Member
0 Kudos
Former Member
0 Kudos

Hi Ashutosh,

You can also take a look at this topic in the 7.1 documentation: http://help.sap.com/saphelp_nwce10/helpdata/en/2a/28249060dd4dbc872f6266f4557364/frameset.htm

Regards,

Nicole

Lisi
Advisor
Advisor
0 Kudos

Hi Ashutosh,

In order to reuse your two models please follow these steps:

1. Create a new model (composite component)

2. Go to the search panel (where you normally search for services). In the search in drop down select "Visual Composer models", in the search for enter the name of the model you want to reuse, in the type select "Model". you will get your model in the search results.

3. Drag the model form the search results to the workspace. (to the newly created model from step 1)

4. Search for the second model and drag it to the workspace as well.

5. Connect the output port of the first model to the input port of the second model and map the relevant data. (Customer ID)

Please note that in order to communicate between two models you need to use signal in and signal out as the interfaces of the model.

Start and end points are not exposed as the model interface when you reuse it from a different model.

Start point should be used to initialize the model with data and end point to terminate the application. (they are also used to receive and send data to a GP process)

Please try it out and let me know if you need further help.

Best Regards,

Lisi