*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import org.argeo.slc.execution.ExecutionModulesManager;
import org.argeo.slc.execution.ExecutionProcess;
import org.argeo.slc.execution.ExecutionStep;
import org.argeo.slc.execution.ExecutionModulesManager;
import org.argeo.slc.execution.ExecutionProcess;
import org.argeo.slc.execution.ExecutionStep;
import org.springframework.security.Authentication;
import org.springframework.security.context.SecurityContextHolder;
import org.springframework.security.Authentication;
import org.springframework.security.context.SecurityContextHolder;
public class ProcessThread extends Thread {
private final static Log log = LogFactory.getLog(ProcessThread.class);
public class ProcessThread extends Thread {
private final static Log log = LogFactory.getLog(ProcessThread.class);
throw new SlcException("Can only execute authenticated threads");
SecurityContextHolder.getContext().setAuthentication(authentication);
throw new SlcException("Can only execute authenticated threads");
SecurityContextHolder.getContext().setAuthentication(authentication);
- log.info("\n##\n## SLC Process #" + process.getUuid() + " STARTED by "
- + authentication.getName() + "\n##\n");
+ // log.info("\n##\n## SLC Process #" + process.getUuid() +
+ // " STARTED by "
+ // + authentication.getName() + "\n##\n");
+ log.info("\n##\n## SLC Process #" + process.getUuid()
+ + " STARTED\n##\n");
* custom process types. Default expects an {@link SlcExecution}.
*/
protected void process() throws InterruptedException {
* custom process types. Default expects an {@link SlcExecution}.
*/
protected void process() throws InterruptedException {
while (flowsToProcess.size() > 0) {
RealizedFlow realizedFlow = flowsToProcess.remove(0);
execute(realizedFlow, true);
while (flowsToProcess.size() > 0) {
RealizedFlow realizedFlow = flowsToProcess.remove(0);
execute(realizedFlow, true);