Skip to main content

Ernest Lee

Ernest Lee's Public Library

Feb 06, 15

"/* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* <a href="http://www.apache.org/licenses/LICENSE-2.0
" rel="nofollow">http://www.apache.org/licenses/LICENSE-2.0
</a> *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
 
package org.activiti.rest.common.filter;
 
import org.restlet.Request;
 
 
/**
* Allows enabling/disabling authentication on specific requests and allows authorisation of request after successful
* authentication.
*
* @author Frederik Heremans
*/
public interface RestAuthenticator {
 
/**
* Called before check is done to see if the request originates from a valid user.
* Allows disabling authentication and authorisation for certain requests.
*
* @return true, if the request requires a valid and authorised user. Return false, if the request
* can be executed without authentication or authorisation. If false is returned, the {@link #isRequestAuthorized(Request)}
* won't be called for this request.
*/
boolean requestRequiresAuthentication(Request request);
 
 
/**
* Called after a user is successfully authenticated against the Activiti identity-management. The logged in user
* can be retrieved from the request's clientInfo object.
*
* @return true, if the user is authorised to perform the request. Return false, if the request is not authorised
* for the given user.
*/
boolean isRequestAuthorized(Request request);
 
}"

  • If, for some reason, it is not necessary or wanted to generate a diagram during deployment the isCreateDiagramOnDeploy property can be set on the process engine configuration:

     
     
     
     
    1
    <property name="createDiagramOnDeploy" value="false" /> 
     
     
     
     

    No diagram will be generated now.

  • 강희제는 “한 가지 일에 부지런하지 않으면 온 천하에 근심을 끼치고, 한 순간에 부지런하지 않으면 천추만대에 우환거리를 남긴다.”라고 역설하였다. 또한 “제왕이 천하를 다스림에 능력이 있는 자를 가까이 두고, 백성들의 세금을 낮추어 주어야 하며, 백성들의 마음을 하나로 묶고, 위태로움이 생기기 전에 나라를 보호하며, 혼란이 있기 전에 이를 먼저 파악하여 잘 다스리고, 관대하고 엄격함의 조화를 이루어 나라를 위한 계책을 도모해야 한다.”

    • We support the following form property types:

       
       
       
         
      •  

        string (org.activiti.engine.impl.form.StringFormType

         
      •  
      •  

        long (org.activiti.engine.impl.form.LongFormType)

         
      •  
      •  

        enum (org.activiti.engine.impl.form.EnumFormType)

         
      •  
      •  

        date (org.activiti.engine.impl.form.DateFormType)

         
      •  
      •  

        boolean (org.activiti.engine.impl.form.BooleanFormType)

    • On top of all process variables, there are a few default objects available to be used in expressions:

       
       
       
         
      •  

        execution: The DelegateExecution that holds additional information about the ongoing execution.

         
      •  
      •  

        task: The DelegateTask that holds additional information about the current Task. Note: Only works in expressions evaluated from task listeners.

         
      •  
      •  

        authenticatedUserId: The id of the user that is currently authenticated. If no user is authenticated, the variable is not available

  • A process instance can have variables (called process variables), but also executions (which are specific pointers to where the process is active) and user tasks can have variables. A process instance can have any number of variables. Each variable is stored in a row in the ACT_RU_VARIABLE database table.
  • Variables are often used in Java delegates, expressions, execution- or tasklisteners, scripts, etc. In those constructs, the current execution or task object is available and it can be used for variable setting and/or retrieval.

  • A process instance can have variables (called process variables), but also executions (which are specific pointers to where the process is active) and user tasks can have variables. A process instance can have any number of variables. Each variable is stored in a row in the ACT_RU_VARIABLE database table.

  • Java classes present in the business archive will not be added to the classpath. All custom classes used in process definitions in the business archive (for example Java service tasks or event listener implementations) should be present on the activiti-engine’s classpath in order to run the processes.
1 - 20 of 2948 Next › Last »
20 items/page

Diigo is about better ways to research, share and collaborate on information. Learn more »

Join Diigo