add processdefinition rest client