Primavera p6 integration api connect Rate to Resource!
Hi!
First question in here!
I have a resource which im going to add two resorucerates to.
But I'm confused about when I have acctually made a connection. And when to use a certian method in the Resoruce class,
Here's my code.
Resource res = new Resource(_sessionHelper.getSession());
res.setId(importResourcesData.getResourceID());
res.setIsActive(true);
res.setUseTimesheets(true);
res.setUserObjectId(importResourcesData.getUser());
res.setName(importResourcesData.getFirstName() + " " + importResourcesData.getLastName());
res.setEmailAddress(importResourcesData.getEmailAdress());
ObjectId resObjId =res.create();
Resource created, that much I understand but now for two scenarios.
Scenario #1
ResourceRate rate = new ResourceRate(_sessionHelper.getSession());
rate.setMaxUnitsPerTime(UnitsPerTime.ZERO_UNITSPERTIME);
Calendar cal = Calendar.getInstance();