Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
how to get current workarea in java
chnkumar
Hi experts,
Please tel me the way to find current workarea using CSSDK
Thanks in advance.
Find more posts tagged with
Comments
vaibhav2288
Hi experts,
Please tel me the way to find current workarea using CSSDK
Thanks in advance.
You can use below code-
CSVPath vPath = new CSVPath(context.getServerContext());
CSWorkarea currentWorkarea = client.getWorkarea(vPath.getArea(),true);
CSBranch currentBranch = client.getBranch(vPath.getBranch(), true);
or use -
System.getenv("IW_WORKAREA"); to get the Teamsite environment variable.
Thanks.
chnkumar
Thank you vaibhav2288
mart2001
If you are doing it through a workflow url external task, you can use:
String workarea=task.getArea().getVPath().getPathNoServer().toString();