Sign In   Register
Pinned Items
Recent Activities
  • There is URL path we need to reference in the workflow but we don't want it to be hardcoded. We need to use something similar to ${submission.portal.contextPath} but replace contextPath with the property name we created to hold that URL path. Is...
    There is URL path we need to reference in the workflow but we don't want it to be hardcoded. We need to use something similar to ${submission.portal.contextPath} but replace contextPath with the property name we created to hold that URL path. Is there a way to do that in JM?

    Thank you.
    More
    1. View Post
    0
    0
    0
    0
    0
    0
    Post is under moderation
    Stream item published successfully. Item will now be visible on your stream.
  • Hi, 

    I'm trying to run a query to return all (current and previous) version(s) of forms with a specific assigned property name. Using the below script, I was able to return a list of all forms (current version only) that include that property...

    Hi, 

    I'm trying to run a query to return all (current and previous) version(s) of forms with a specific assigned property name. Using the below script, I was able to return a list of all forms (current version only) that include that property along with the assigned value to each one of them. Is there a way to query that property value from both current and previous form(s) versions? 

    import com.avoka.fc.core.dao.DaoFactory
    import com.avoka.fc.core.entity.Form
    import com.avoka.tm.query.*
    import com.avoka.tm.vo.*

     //Form Property name to look up
     String nameOfProperty = "WindwardReceiptResourceName"

    List<Form> forms = new DaoFactory().getFormDao().getActiveAndProductionFormList()

    List<String> fileNames =[]


    forms.each { form ->

    String formCode = form.getFormCode()
    String propertyValue = new PropertyQuery()
    .setName(nameOfProperty)
    .setSpaceName("TEST")
    .setFormCode(formCode)
    .getValue()

    if(propertyValue){
    fileNames.add(propertyValue as String);
    //println propertyValue
    }

    }

    println fileNames

    More
    1. View Post
    0
    0
    0
    0
    0
    0
    Post is under moderation
    Stream item published successfully. Item will now be visible on your stream.
  • Hi Nirmal, 

    Larry's suggestion did work. Using the property names instead of the get methods solved the issue.

    1. View Post
    0
    0
    0
    0
    0
    0
    Post is under moderation
    Stream item published successfully. Item will now be visible on your stream.
  • Awesome - Works now - Thank you, Larry!

    "value": "$func.startSubmission().Version.VersionNumber"

    1. View Post
    0
    0
    0
    0
    0
    0
    Post is under moderation
    Stream item published successfully. Item will now be visible on your stream.
  • I need to use the same form version throughout the workflow even if a new form version is pushed.

    I'm trying to add the following property { "name": "Task Form Version", "value": "1" } to each review step, however, I need to assign it a dynamic...

    I need to use the same form version throughout the workflow even if a new form version is pushed.

    I'm trying to add the following property { "name": "Task Form Version", "value": "1" } to each review step, however, I need to assign it a dynamic value that always return the form version used in the first submission.

    I tried to assign it “$func.startSubmission().getVersion().getVersionNumber()” but got the following error.

    Error ID ******
    Time *****
    Type Collaboration Job
    Name IllegalArgumentException
    Message Form Version not found for Form Code: test-form2 Version Number: { <ObjectId:Submission, submission_oid=360760>; committed; [ abandonmentFormStatus: null abandonmentTimestamp: null abandonmentTy  

    Thank you,

    Ahmed.

    More
    1. View Post
    0
    0
    0
    0
    0
    0
    Post is under moderation
    Stream item published successfully. Item will now be visible on your stream.
There are no activities here yet
Unable to load tooltip content.

Not a member?

Register to ask a question and access to more content.

Join now

Looking for something else?

You can request access to:

  • Courses
  • Full Release Notes
  • Product Downloads
  • SDK

Request access