Activiti-rest invoke issue
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-14-2016 12:12 PM
3 REPLIES 3

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-16-2016 01:22 AM
What's the REST endpoint you are trying to use ? What's the issue ?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-16-2016 09:29 AM
I've implemented the activiti-rest end point under com.activiti.extension.rest package in enterprise version of Activiti(1.4.1).Please find the snippet of the code below.
Once I try to configure this end point for rest service call on the dropdown list I'm getting 401-Unauthorized error.
I've defined the end point and provided the Authenticated header for the same.Still I'm not able to invoke this rest point under the drop down list.
but once I login and invoke the following end point in the browser I'm getting the results.
http://localhost:8080/activiti-app/app/account/currencies
Copied the same class under com.activiti.extension.api package too with the below request mapping
@RestController("TimeOffController")
@EnableAutoConfiguration
@RequestMapping({"/enterprise/account"})
public class DealOnboardingRestEndPoint {
@RestController("TimeOffController")
@EnableAutoConfiguration
@RequestMapping({"/account"})
public class TimeTrackRestController {
@RequestMapping({"/test"})
@ResponseBody
public String home() {
return "Hello Anil Welcome to Deal onbording App!";
}
@RequestMapping(value={"/currencies"}, method=RequestMethod.GET, produces = "application/json")
public Set<Currency> getAllCurrencies() {
Set<Currency> aCurrencySet = Currency.getAvailableCurrencies();
System.out.println("Available currencies:::"+aCurrencySet.size());
for (Currency currency : aCurrencySet) {
System.out.println("Currency Code::::"+ currency.getCurrencyCode());
}
return aCurrencySet;
}
}
Once I try to configure this end point for rest service call on the dropdown list I'm getting 401-Unauthorized error.
I've defined the end point and provided the Authenticated header for the same.Still I'm not able to invoke this rest point under the drop down list.
but once I login and invoke the following end point in the browser I'm getting the results.
http://localhost:8080/activiti-app/app/account/currencies
Copied the same class under com.activiti.extension.api package too with the below request mapping
@RestController("TimeOffController")
@EnableAutoConfiguration
@RequestMapping({"/enterprise/account"})
public class DealOnboardingRestEndPoint {
@RestController("TimeOffController")
@EnableAutoConfiguration
@RequestMapping({"/account"})
public class TimeTrackRestController {
@RequestMapping({"/test"})
@ResponseBody
public String home() {
return "Hello Anil Welcome to Deal onbording App!";
}
@RequestMapping(value={"/currencies"}, method=RequestMethod.GET, produces = "application/json")
public Set<Currency> getAllCurrencies() {
Set<Currency> aCurrencySet = Currency.getAvailableCurrencies();
System.out.println("Available currencies:::"+aCurrencySet.size());
for (Currency currency : aCurrencySet) {
System.out.println("Currency Code::::"+ currency.getCurrencyCode());
}
return aCurrencySet;
}
}
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-16-2016 03:17 PM
I believe i've replied this on your previous post - https://forums.activiti.org/content/activiti-rest-end-point
